[WDMAUD]
[reactos.git] / reactos / drivers / wdm / audio / legacy / wdmaud / mmixer.c
index deafa02..2d8dbd8 100644 (file)
@@ -271,6 +271,12 @@ Enum(
 
     /* open device interface key */
     Status = IoOpenDeviceInterfaceRegistryKey(&KeyName, GENERIC_READ | GENERIC_WRITE, OutKey);
+
+    if (!NT_SUCCESS(Status))
+    {
+        *OutKey = NULL;
+    }
+
 #if 0
     if (!NT_SUCCESS(Status))
     {