Daniel Jelinski : regedit: Disallow editing root key names.
Alexandre Julliard
julliard at winehq.org
Tue Oct 16 15:27:47 CDT 2012
Module: wine
Branch: master
Commit: 003622c015298d2c4fcbdf63ccc62ca036acd0db
URL: http://source.winehq.org/git/wine.git/?a=commit;h=003622c015298d2c4fcbdf63ccc62ca036acd0db
Author: Daniel Jelinski <djelinski1 at 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;
More information about the wine-cvs
mailing list