don't typecast constant strings
[reactos.git] / reactos / boot / freeldr / freeldr / arch / i386 / hwpci.c
index d58fb3f..acac5dc 100644 (file)
@@ -237,6 +237,7 @@ DetectPciBios(FRLDRHKEY SystemKey, ULONG *BusNumber)
 #if 0
   FRLDRHKEY BusKey;
   ULONG i;
+  WCHAR szPci[] = L"PCI";
 #endif
 
   /* Report the PCI BIOS */
@@ -345,8 +346,8 @@ DetectPciBios(FRLDRHKEY SystemKey, ULONG *BusNumber)
          Error = RegSetValue(BusKey,
                              L"Identifier",
                              REG_SZ,
-                             (PUCHAR)"PCI",
-                             4 * sizeof(WCHAR));
+                             (PCSTR)szPci,
+                             sizeof(szPci));
          if (Error != ERROR_SUCCESS)
            {
              DbgPrint((DPRINT_HWDETECT, "RegSetValue() failed (Error %u)\n", (int)Error));