mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Merge pull request #142 from kondrak/dev
Return proper result when fopen() fails.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user