Merge pull request #142 from kondrak/dev

Return proper result when fopen() fails.
This commit is contained in:
David Reid
2020-03-17 07:10:38 +10:00
committed by GitHub
+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