summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Sound.cpp')
-rw-r--r--nGenEx/Sound.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/nGenEx/Sound.cpp b/nGenEx/Sound.cpp
index b6ef695..b8e502a 100644
--- a/nGenEx/Sound.cpp
+++ b/nGenEx/Sound.cpp
@@ -59,7 +59,8 @@ Sound::CreateStream(const char* filename)
LPBYTE p = 0;
int len = 0;
- FILE* f = ::fopen(filename, "rb");
+ FILE* f;
+ ::fopen_s(&f, filename, "rb");
if (f) {
fseek(f, 0, SEEK_END);
@@ -157,7 +158,8 @@ Sound::CreateOggStream(const char* filename)
WAVEFORMATEX wfex;
ZeroMemory(&wfex, sizeof(wfex));
- FILE* f = ::fopen(filename, "rb");
+ FILE* f;
+ ::fopen_s(&f, filename, "rb");
if (f) {
OggVorbis_File* povf = new(__FILE__,__LINE__) OggVorbis_File;