Commit 75e20452 authored by Krzysztof Kondrak's avatar Krzysztof Kondrak

Return proper result when fopen() fails.

parent b3d58424
...@@ -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