[WDMAUD.DRV]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 24 Jun 2010 11:18:16 +0000 (11:18 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 24 Jun 2010 11:18:16 +0000 (11:18 +0000)
- Fix initialization of mmixer library

svn path=/trunk/; revision=47842

reactos/dll/win32/wdmaud.drv/mmixer.c

index 312d325..c47b651 100644 (file)
@@ -282,7 +282,7 @@ Enum(
         HeapFree(GetProcessHeap(), 0, DetailData);
         return MM_STATUS_NO_MEMORY;
     }
-
+       DPRINT1("DeviceName %S\n", DetailData->DevicePath);
     wcscpy(*DeviceName, DetailData->DevicePath);
     HeapFree(GetProcessHeap(), 0, DetailData);
 
@@ -519,7 +519,10 @@ WdmAudOpenSoundDeviceByMMixer(
     IN  struct _SOUND_DEVICE* SoundDevice,
     OUT PVOID* Handle)
 {
-    return WdmAudInitUserModeMixer();
+    if (WdmAudInitUserModeMixer())
+        return MMSYSERR_NOERROR;
+    else
+        return MMSYSERR_ERROR;
 }
 
 MMRESULT