summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/D3DXImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/D3DXImage.cpp')
-rw-r--r--nGenEx/D3DXImage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/nGenEx/D3DXImage.cpp b/nGenEx/D3DXImage.cpp
index 3300253..721f0e9 100644
--- a/nGenEx/D3DXImage.cpp
+++ b/nGenEx/D3DXImage.cpp
@@ -52,7 +52,7 @@ bool D3DXImage::Load(char *filename)
bool success = false;
FILE* f;
- f = fopen(filename,"rb");
+ fopen_s(&f, filename,"rb");
if (f == NULL)
return success;
@@ -162,7 +162,8 @@ bool D3DXImage::Save(char *filename)
if (!image || !width || !height)
return success;
- FILE* f = fopen(filename,"wb");
+ FILE* f;
+ fopen_s(&f, filename,"wb");
if (f == NULL)
return success;