Index: src/ch/AppHelper.cpp =================================================================== diff -u -N -rf2eab440135dd8052881aa3e9af83ec85e9bf1bf -rcb4e9d4b60d62b25ae2cf556c0642601af56c787 --- src/ch/AppHelper.cpp (.../AppHelper.cpp) (revision f2eab440135dd8052881aa3e9af83ec85e9bf1bf) +++ src/ch/AppHelper.cpp (.../AppHelper.cpp) (revision cb4e9d4b60d62b25ae2cf556c0642601af56c787) @@ -264,13 +264,12 @@ { // check the current key value (to avoid irritating messages from some firewall software) HKEY hkeyRun = NULL; - LSTATUS lStatus = ERROR_SUCCESS; CString strValue; CString strKey; DWORD dwType = REG_SZ; DWORD dwCount = _MAX_PATH * sizeof(TCHAR); - lStatus = RegOpenKeyEx(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"), 0, KEY_QUERY_VALUE, &hkeyRun); + LSTATUS lStatus = RegOpenKeyEx(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"), 0, KEY_QUERY_VALUE, &hkeyRun); if(lStatus != ERROR_SUCCESS) return false;