summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/VideoDX9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/VideoDX9.cpp')
-rw-r--r--nGenEx/VideoDX9.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nGenEx/VideoDX9.cpp b/nGenEx/VideoDX9.cpp
index d54ae1e..0cf6eda 100644
--- a/nGenEx/VideoDX9.cpp
+++ b/nGenEx/VideoDX9.cpp
@@ -656,7 +656,8 @@ VideoDX9::CreateBuffers()
magic_fx_code_len = loader->LoadBuffer("magic.fx", magic_fx_code, true, true);
}
else {
- FILE* f = ::fopen("magic.fx", "rb");
+ FILE* f;
+ ::fopen_s(&f, "magic.fx", "rb");
if (f) {
::fseek(f, 0, SEEK_END);