fix RegSetValueEx() call

svn path=/trunk/; revision=10865
This commit is contained in:
Martin Fuchs 2004-09-15 14:25:46 +00:00
parent 650bd77805
commit 57dbd89701

View file

@ -460,7 +460,7 @@ BOOL RegSetDWORDValue(HKEY root, LPCTSTR path, LPCTSTR valueName, DWORD value)
BOOL ret = FALSE;
if (!RegOpenKey(root, path, &hkey)) {
ret = RegSetValueEx(hkey, valueName, 0, NULL, (LPBYTE)&value, sizeof(value));
ret = RegSetValueEx(hkey, valueName, 0, REG_DWORD, (LPBYTE)&value, sizeof(value));
RegCloseKey(hkey);
}