mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +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;
|
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 {
|
} else {
|
||||||
return MA_SUCCESS;
|
return MA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user