Alexander Nicolaysen Sørnes : regedit: Set selected key name as default favourite name.
Alexandre Julliard
julliard at winehq.org
Thu May 22 06:26:45 CDT 2008
Module: wine
Branch: master
Commit: c1940e397e56c6d8fc2f1fbf7987487360ec935d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1940e397e56c6d8fc2f1fbf7987487360ec935d
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu May 22 00:00:12 2008 +0200
regedit: Set selected key name as default favourite name.
---
programs/regedit/framewnd.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index d1fb973..fd20a62 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -506,9 +506,17 @@ static INT_PTR CALLBACK addtofavorites_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM w
switch(uMsg) {
case WM_INITDIALOG:
+ {
+ HKEY hKeyRoot = NULL;
+ LPSTR ItemPath = GetItemPath(g_pChildWnd->hTreeWnd, NULL, &hKeyRoot);
+
+ if(!ItemPath || !*ItemPath)
+ ItemPath = GetItemFullPath(g_pChildWnd->hTreeWnd, NULL, FALSE);
EnableWindow(GetDlgItem(hwndDlg, IDOK), FALSE);
+ SetWindowText(hwndValue, ItemPath);
SendMessage(hwndValue, EM_SETLIMITTEXT, 127, 0);
return TRUE;
+ }
case WM_COMMAND:
switch(LOWORD(wParam)) {
case IDC_VALUE_NAME:
More information about the wine-cvs
mailing list