Commit bb2a31d7 authored by David Reid's avatar David Reid Committed by GitHub

Merge pull request #142 from kondrak/dev

Return proper result when fopen() fails.
parents b3d58424 75e20452
...@@ -6813,6 +6813,7 @@ MA_API ma_result ma_fopen(FILE** ppFile, const char* pFilePath, const char* pOpe ...@@ -6813,6 +6813,7 @@ MA_API ma_result ma_fopen(FILE** ppFile, const char* pFilePath, const char* pOpe
if (result == MA_SUCCESS) { if (result == MA_SUCCESS) {
return MA_ERROR; /* Just a safety check to make sure we never ever return success when pFile == NULL. */ return MA_ERROR; /* Just a safety check to make sure we never ever return success when pFile == NULL. */
} }
return result;
} }
#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