Commit b8b228a9 authored by David Reid's avatar David Reid

Fix a bug in WASAPI where an empty message could be logged.

parent 79cca305
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment