Fix a bug where ma_decoder_init_file can incorrectly return successful.

This commit is contained in:
David Reid
2023-08-19 09:22:39 +10:00
parent 509bd6d4f2
commit 46eaf1fa5e
+2 -2
View File
@@ -64826,7 +64826,7 @@ MA_API ma_result ma_decoder_init_file(const char* pFilePath, const ma_decoder_co
/* Probably no implementation for loading from a file path. Use miniaudio's file IO instead. */
result = ma_decoder_init_vfs(NULL, pFilePath, pConfig, pDecoder);
if (result != MA_SUCCESS) {
return MA_SUCCESS;
return result;
}
}
@@ -64976,7 +64976,7 @@ MA_API ma_result ma_decoder_init_file_w(const wchar_t* pFilePath, const ma_decod
/* Probably no implementation for loading from a file path. Use miniaudio's file IO instead. */
result = ma_decoder_init_vfs_w(NULL, pFilePath, pConfig, pDecoder);
if (result != MA_SUCCESS) {
return MA_SUCCESS;
return result;
}
}