Auto-determine base of DWORD registry entries.
Fixes bug 764.
Modified: trunk/reactos/lib/setupapi/install.c
_____
Modified: trunk/reactos/lib/setupapi/install.c
--- trunk/reactos/lib/setupapi/install.c 2005-09-10 19:01:44 UTC
(rev 17785)
+++ trunk/reactos/lib/setupapi/install.c 2005-09-10 19:21:49 UTC
(rev 17786)
@@ -334,7 +334,7 @@
if (type == REG_DWORD)
{
- DWORD dw = str ? strtoulW( str, NULL, 16 ) : 0;
+ DWORD dw = str ? strtoulW( str, NULL, 0 ) : 0;
TRACE( "setting dword %s to %lx\n", debugstr_w(value), dw
);
RegSetValueExW( hkey, value, 0, type, (BYTE *)&dw,
sizeof(dw) );
}