mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix a bug in WASAPI where an empty message could be logged.
This commit is contained in:
+5
-1
@@ -11927,7 +11927,11 @@ done:
|
||||
pData->pAudioClient = NULL;
|
||||
}
|
||||
|
||||
return ma_context_post_error(pContext, NULL, MA_LOG_LEVEL_ERROR, errorMsg, result);
|
||||
if (errorMsg != NULL && errorMsg[0] != '\0') {
|
||||
ma_context_post_error(pContext, NULL, MA_LOG_LEVEL_ERROR, errorMsg, result);
|
||||
}
|
||||
|
||||
return result;
|
||||
} else {
|
||||
return MA_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user