Author: hbelusca
Date: Tue Dec 30 12:21:04 2014
New Revision: 65906
URL:
http://svn.reactos.org/svn/reactos?rev=65906&view=rev
Log:
[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!
Modified:
trunk/reactos/base/applications/calc/winmain.c
Modified: trunk/reactos/base/applications/calc/winmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/calc/win…
==============================================================================
--- trunk/reactos/base/applications/calc/winmain.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/calc/winmain.c [iso-8859-1] Tue Dec 30 12:21:04 2014
@@ -286,7 +286,7 @@
HKEY hKey;
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;
}