X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fboot%2Ffreeldr%2Ffreeldr%2Farch%2Fi386%2Fhwpci.c;h=acac5dc21c7e518191b1550768bdd1351f6504d3;hp=d58fb3fed14d39da5c29cf8ca7e7152d311de647;hb=2859b116ca9e9bf4e9af1f9f1a496e45a4ff95bd;hpb=7737b1bf174e8edae1f14d5f33e453c77dcd7616 diff --git a/reactos/boot/freeldr/freeldr/arch/i386/hwpci.c b/reactos/boot/freeldr/freeldr/arch/i386/hwpci.c index d58fb3fed14..acac5dc21c7 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/hwpci.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/hwpci.c @@ -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));