Commit 98403282 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

mmdevapi: Don't fail when no audio backends are present.

parent a23402f6
......@@ -295,10 +295,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
unsigned int i = 0;
TRACE("(%s, %s, %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
if(!InitOnceExecuteOnce(&init_once, init_driver, NULL, NULL)) {
ERR("Driver initialization failed\n");
return E_FAIL;
}
InitOnceExecuteOnce(&init_once, init_driver, NULL, NULL);
if (ppv == NULL) {
WARN("invalid parameter\n");
......
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