Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2009-02-25 13:25:32 +0000 (Wed, 25 Feb 2009)
Fix bug in condition determining if reg value exists.
--- branches/R2_12/Src/Common/RegOptionsMgr.cpp 2009-02-25 13:23:33 UTC (rev 6497)
+++ branches/R2_12/Src/Common/RegOptionsMgr.cpp 2009-02-25 13:25:32 UTC (rev 6498)
@@ -66,7 +66,6 @@
LONG retValReg = 0;
LPBYTE pData = NULL;
DWORD type = 0;
- TCHAR * valueBuf = NULL;
DWORD size = 0;
int valType = value.GetType();
int retVal = OPT_OK;
@@ -237,7 +236,7 @@
retVal = SaveValueToReg(hKey, strValueName.c_str(), defaultValue);
// Value already exists so read it.
- else if (retValReg == ERROR_SUCCESS || ERROR_MORE_DATA)
+ else if (retValReg == ERROR_SUCCESS || retValReg == ERROR_MORE_DATA)
retVal = LoadValueFromReg(hKey, name, defaultValue);
if (retVal == OPT_OK)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: