diff options
Diffstat (limited to 'source/core/slang-stream.cpp')
| -rw-r--r-- | source/core/slang-stream.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/core/slang-stream.cpp b/source/core/slang-stream.cpp index 1b8468c04..07c7e858c 100644 --- a/source/core/slang-stream.cpp +++ b/source/core/slang-stream.cpp @@ -163,8 +163,7 @@ SlangResult FileStream::_init( return SLANG_FAIL; } if (share == FileShare::None) -#pragma warning(suppress : 4996) - m_handle = _wfopen(fileName.toWString(), wideMode); + _wfopen_s(&m_handle, fileName.toWString(), wideMode); else m_handle = _wfsopen(fileName.toWString(), wideMode, shFlag); #else |
