Commit ebece828 authored by David Reid's avatar David Reid

Fix errors when opening a decoder from a file.

parent fb527d16
...@@ -17490,12 +17490,12 @@ mal_result mal_decoder__preinit_file(const char* pFilePath, const mal_decoder_co ...@@ -17490,12 +17490,12 @@ mal_result mal_decoder__preinit_file(const char* pFilePath, const mal_decoder_co
FILE* pFile; FILE* pFile;
#if defined(_MSC_VER) && _MSC_VER >= 1400 #if defined(_MSC_VER) && _MSC_VER >= 1400
if (fopen_s(&pFile, pFilePath, "rb") != 0) { if (fopen_s(&pFile, pFilePath, "rb") != 0) {
return MAL_FALSE; return MAL_ERROR;
} }
#else #else
pFile = fopen(pFilePath, "rb"); pFile = fopen(pFilePath, "rb");
if (pFile == NULL) { if (pFile == NULL) {
return MAL_FALSE; return MAL_ERROR;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment