Return proper result when fopen() fails.

This commit is contained in:
Krzysztof Kondrak
2020-03-16 21:55:57 +01:00
parent b3d5842460
commit 75e20452d9
+1
View File
@@ -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