Module: wine Branch: master Commit: 003622c015298d2c4fcbdf63ccc62ca036acd0db URL: http://source.winehq.org/git/wine.git/?a=commit;h=003622c015298d2c4fcbdf63cc...
Author: Daniel Jelinski djelinski1@gmail.com Date: Tue Oct 16 20:14:52 2012 +0200
regedit: Disallow editing root key names.
---
programs/regedit/childwnd.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index 1ff7a90..6dc7d0c 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -405,6 +405,12 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa TPM_RIGHTBUTTON, pt.x, pt.y, 0, hFrameWnd, NULL); break; } + case TVN_BEGINLABELEDITW: { + HKEY hRootKey; + LPWSTR path = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hRootKey); + if (!path || !*path) return 1; + return 0; + } case TVN_ENDLABELEDITW: { HKEY hRootKey; LPNMTVDISPINFOW dispInfo = (LPNMTVDISPINFOW)lParam;