Author: pborobia Date: Fri Sep 1 23:26:24 2006 New Revision: 23872
URL: http://svn.reactos.org/svn/reactos?rev=23872&view=rev Log: * Create LastKey if it don't exist * Remove hardcoded key reference
Modified: branches/clipboard/base/applications/regedit/childwnd.c
Modified: branches/clipboard/base/applications/regedit/childwnd.c URL: http://svn.reactos.org/svn/reactos/branches/clipboard/base/applications/rege... ============================================================================== --- branches/clipboard/base/applications/regedit/childwnd.c (original) +++ branches/clipboard/base/applications/regedit/childwnd.c Fri Sep 1 23:26:24 2006 @@ -431,8 +431,8 @@ TCHAR szBuffer[MAX_PATH]; _sntprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), _T("My Computer\%s\%s"), rootName, keyPath);
- if (RegOpenKey(HKEY_CURRENT_USER, - _T("Software\Microsoft\Windows\CurrentVersion\Applets\Regedit"), + if (RegCreateKey(HKEY_CURRENT_USER, + g_szGeneralRegKey, &hKey) == ERROR_SUCCESS) { RegSetValueEx(hKey, _T("LastKey"), 0, REG_SZ, (LPBYTE) szBuffer, (DWORD) _tcslen(szBuffer) * sizeof(szBuffer[0]));