Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1e1bfba1
Commit
1e1bfba1
authored
Jan 03, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Only allow key renaming via the Edit or Popup menus.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
abfa87da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
childwnd.c
programs/regedit/childwnd.c
+7
-1
treeview.c
programs/regedit/treeview.c
+1
-0
No files found.
programs/regedit/childwnd.c
View file @
1e1bfba1
...
...
@@ -419,7 +419,12 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
}
case
TVN_BEGINLABELEDITW
:
{
HKEY
hRootKey
;
LPWSTR
path
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hRootKey
);
LPWSTR
path
;
if
(
!
GetWindowLongPtrW
(
g_pChildWnd
->
hTreeWnd
,
GWLP_USERDATA
))
return
1
;
path
=
GetItemPath
(
g_pChildWnd
->
hTreeWnd
,
0
,
&
hRootKey
);
if
(
!
path
||
!*
path
)
return
1
;
return
0
;
}
...
...
@@ -440,6 +445,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
HeapFree
(
GetProcessHeap
(),
0
,
fullPath
);
}
HeapFree
(
GetProcessHeap
(),
0
,
path
);
SetWindowLongPtrW
(
g_pChildWnd
->
hTreeWnd
,
GWLP_USERDATA
,
0
);
return
res
;
}
default:
...
...
programs/regedit/treeview.c
View file @
1e1bfba1
...
...
@@ -529,6 +529,7 @@ HWND StartKeyRename(HWND hwndTV)
HTREEITEM
hItem
;
if
(
!
(
hItem
=
(
HTREEITEM
)
SendMessageW
(
hwndTV
,
TVM_GETNEXTITEM
,
TVGN_CARET
,
0
)))
return
0
;
SetWindowLongPtrW
(
hwndTV
,
GWLP_USERDATA
,
1
);
return
(
HWND
)
SendMessageW
(
hwndTV
,
TVM_EDITLABELW
,
0
,
(
LPARAM
)
hItem
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment