Author: cgutman
Date: Mon Aug 15 01:55:32 2011
New Revision: 53248
URL:
http://svn.reactos.org/svn/reactos?rev=53248&view=rev
Log:
[HAL]
- Fix a bug writing the DisableFirmwareMapper entry
Modified:
trunk/reactos/hal/halx86/generic/misc.c
Modified: trunk/reactos/hal/halx86/generic/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/misc.c?…
==============================================================================
--- trunk/reactos/hal/halx86/generic/misc.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/misc.c [iso-8859-1] Mon Aug 15 01:55:32 2011
@@ -62,6 +62,7 @@
UNICODE_STRING KeyString;
HANDLE KeyHandle;
HANDLE Handle;
+ ULONG Value = HalDisableFirmwareMapper ? 1 : 0;
/* Open the control set key */
RtlInitUnicodeString(&KeyString,
@@ -88,8 +89,8 @@
&KeyString,
0,
REG_DWORD,
- &HalDisableFirmwareMapper,
- sizeof(HalDisableFirmwareMapper));
+ &Value,
+ sizeof(Value));
/* Close subkey */
ZwClose(KeyHandle);