Fix unused wrong return value of InitOption & improve one comment
Src/Common: OptionsMgr.cpp
+2006-01-25 Perry
+ BUG: [ 1412237 ] InitOption return value wrong if RegCreateKey fails
+ Fix unused wrong return value of InitOption & improve one comment
+ Src/Common: OptionsMgr.cpp
+
2006-01-24 WinMerge experimental release 2.5.3.1 (cvs)
2006-01-23 Kimmo
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, &action);
if (retValReg != ERROR_SUCCESS)
- return OPT_OK;
+ return OPT_ERR;
// Check previous value
DWORD type = 0;
// Actually save value into our in-memory options table
int retVal = AddOption(name, defaultValue);
- // Update registry if appropriate
+ // Update registry if successfully saved to in-memory table
if (retVal == OPT_OK)
{
// Value didn't exist. Save default value to registry