Fix a bug in ma_encoder_init_file_w().

Public issue https://github.com/mackron/miniaudio/issues/297
This commit is contained in:
David Reid
2021-04-19 18:46:43 +10:00
parent f31bdb15fc
commit 2f9f618434
+1 -1
View File
@@ -48134,7 +48134,7 @@ MA_API ma_result ma_encoder_init_file_w(const wchar_t* pFilePath, const ma_encod
/* Now open the file. If this fails we don't need to uninitialize the encoder. */
result = ma_wfopen(&pFile, pFilePath, L"wb", &pEncoder->config.allocationCallbacks);
if (pFile != NULL) {
if (pFile == NULL) {
return result;
}