mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
fix RegSetValueEx() call
svn path=/trunk/; revision=10865
This commit is contained in:
parent
650bd77805
commit
57dbd89701
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ BOOL RegSetDWORDValue(HKEY root, LPCTSTR path, LPCTSTR valueName, DWORD value)
|
||||||
BOOL ret = FALSE;
|
BOOL ret = FALSE;
|
||||||
|
|
||||||
if (!RegOpenKey(root, path, &hkey)) {
|
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);
|
RegCloseKey(hkey);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue