[HNETCFG] Sync with Wine 3.0. CORE-14225
[reactos.git] / win32ss / drivers / videoprt / registry.c
index 7f62a4a..1527fb6 100644 (file)
@@ -59,7 +59,7 @@ IntCopyRegistryKey(
             if (InfoBuffer == NULL)
             {
                 ERR_(VIDEOPRT, "Could not allocate buffer for key info\n");
-                return Status;
+                return STATUS_INSUFFICIENT_RESOURCES;
             }
         }
 
@@ -211,7 +211,7 @@ IntCopyRegistryKey(
         if (!NT_SUCCESS(Status))
         {
             /* Just warn, but continue with the remaining sub-keys */
-            WARN_(VIDEOPRT, "failed to set value '%wZ'.\n", NameString);
+            WARN_(VIDEOPRT, "failed to set value '%wZ'.\n", &NameString);
         }
 
         /* Next subkey */
@@ -309,7 +309,7 @@ IntSetupDeviceSettingsKey(
                                      &DevInstRegKey);
     if (Status != STATUS_SUCCESS)
     {
-        ERR_(VIDEOPRT, "Failed to open device software key. Status 0x%lx", Status);
+        ERR_(VIDEOPRT, "Failed to open device software key. Status 0x%lx\n", Status);
         return Status;
     }
 
@@ -326,7 +326,7 @@ IntSetupDeviceSettingsKey(
 
     if (Status != STATUS_SUCCESS)
     {
-        ERR_(VIDEOPRT, "Failed to open settings key. Status 0x%lx", Status);
+        ERR_(VIDEOPRT, "Failed to open settings key. Status 0x%lx\n", Status);
         return Status;
     }
 
@@ -339,7 +339,7 @@ IntSetupDeviceSettingsKey(
     Status = ZwOpenKey(&SourceKeyHandle, KEY_WRITE, &ObjectAttributes);
     if (Status != STATUS_SUCCESS)
     {
-        ERR_(VIDEOPRT, "ZwOpenKey failed for settings key: status 0x%lx", Status);
+        ERR_(VIDEOPRT, "ZwOpenKey failed for settings key: status 0x%lx\n", Status);
         ObCloseHandle(DestKeyHandle, KernelMode);
         return Status;
     }
@@ -615,7 +615,7 @@ IntCreateRegistryPath(
     }
     else
     {
-        WARN_(VIDEOPRT, "Unparsable registry path %wZ", DriverRegistryPath);
+        WARN_(VIDEOPRT, "Unparsable registry path %wZ\n", DriverRegistryPath);
     }
 
     /* If path doesn't point to *ControlSet*, use DriverRegistryPath directly */
@@ -633,8 +633,8 @@ IntCreateRegistryPath(
         RtlAppendUnicodeToString(DeviceRegistryPath, Insert2);
     }
 
-    DbgPrint("Formatted registry key '%wZ' -> '%wZ'\n",
-             DriverRegistryPath, DeviceRegistryPath);
+    DPRINT("Formatted registry key '%wZ' -> '%wZ'\n",
+           DriverRegistryPath, DeviceRegistryPath);
 
     return STATUS_SUCCESS;
 }