--- trunk/reactos/subsys/system/regedit/childwnd.c 2005-10-05 23:59:13 UTC (rev 18288)
+++ trunk/reactos/subsys/system/regedit/childwnd.c 2005-10-06 03:23:09 UTC (rev 18289)
@@ -414,6 +414,20 @@
_stprintf(fullPath, _T("%s\\%s"), rootName, keyPath);
SendMessage(hStatusBar, SB_SETTEXT, 0, (LPARAM)fullPath);
HeapFree(GetProcessHeap(), 0, fullPath);
+
+ {
+ HKEY hKey;
+ 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"),
+ &hKey) == ERROR_SUCCESS)
+ {
+ RegSetValueEx(hKey, _T("LastKey"), 0, REG_SZ, (LPBYTE) szBuffer, _tcslen(szBuffer) * sizeof(szBuffer[0]));
+ RegCloseKey(hKey);
+ }
+ }
}
}
}