mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[CALC]
Use RegCreateKeyEx to be able to create the settings registry key in case it doesn't already exist. Patch by Ricardo Hanke. CORE-8986 #resolve #comment Fixed, thanks! svn path=/trunk/; revision=65906
This commit is contained in:
parent
2272ff8795
commit
7316e9742e
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ static void save_config(void)
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
DWORD sepValue;
|
DWORD sepValue;
|
||||||
|
|
||||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\Calc"), 0, KEY_ALL_ACCESS, &hKey) != ERROR_SUCCESS )
|
if (RegCreateKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\Calc"), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, NULL, &hKey, NULL) != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue