Use strtoulW instead of strtolW for DWORD conversion.

This commit is contained in:
Huw Davies 2003-05-13 22:16:11 +00:00 committed by Alexandre Julliard
parent 1eb2c05070
commit 0704955ca4
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ static BOOL do_reg_operation( HKEY hkey, const WCHAR *value, INFCONTEXT *context
if (type == REG_DWORD)
{
DWORD dw = str ? strtolW( str, NULL, 16 ) : 0;
DWORD dw = str ? strtoulW( str, NULL, 16 ) : 0;
TRACE( "setting dword %s to %lx\n", debugstr_w(value), dw );
RegSetValueExW( hkey, value, 0, type, (BYTE *)&dw, sizeof(dw) );
}