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
85fb14ff
Commit
85fb14ff
authored
Apr 14, 2022
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use wide character string literals in treeview.c.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
039fc878
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
treeview.c
programs/regedit/treeview.c
+7
-8
No files found.
programs/regedit/treeview.c
View file @
85fb14ff
...
@@ -543,12 +543,12 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPWSTR pHostName)
...
@@ -543,12 +543,12 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPWSTR pHostName)
{
{
TVINSERTSTRUCTW
tvins
;
TVINSERTSTRUCTW
tvins
;
HTREEITEM
hRoot
;
HTREEITEM
hRoot
;
static
WCHAR
hkcr
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'L'
,
'A'
,
'S'
,
'S'
,
'E'
,
'S'
,
'_'
,
'R'
,
'O'
,
'O'
,
'T'
,
0
}
,
static
WCHAR
hkcr
[]
=
L"HKEY_CLASSES_ROOT"
,
hkcu
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'U'
,
'R'
,
'R'
,
'E'
,
'N'
,
'T'
,
'_'
,
'U'
,
'S'
,
'E'
,
'R'
,
0
}
,
hkcu
[]
=
L"HKEY_CURRENT_USER"
,
hklm
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'_'
,
'M'
,
'A'
,
'C'
,
'H'
,
'I'
,
'N'
,
'E'
,
0
}
,
hklm
[]
=
L"HKEY_LOCAL_MACHINE"
,
hku
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'U'
,
'S'
,
'E'
,
'R'
,
'S'
,
0
}
,
hku
[]
=
L"HKEY_USERS"
,
hkcc
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'U'
,
'R'
,
'R'
,
'E'
,
'N'
,
'T'
,
'_'
,
'C'
,
'O'
,
'N'
,
'F'
,
'I'
,
'G'
,
0
}
,
hkcc
[]
=
L"HKEY_CURRENT_CONFIG"
,
hkdd
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'D'
,
'Y'
,
'N'
,
'_'
,
'D'
,
'A'
,
'T'
,
'A'
,
0
}
;
hkdd
[]
=
L"HKEY_DYN_DATA"
;
tvins
.
u
.
item
.
mask
=
TVIF_TEXT
|
TVIF_IMAGE
|
TVIF_SELECTEDIMAGE
|
TVIF_CHILDREN
|
TVIF_PARAM
;
tvins
.
u
.
item
.
mask
=
TVIF_TEXT
|
TVIF_IMAGE
|
TVIF_SELECTEDIMAGE
|
TVIF_CHILDREN
|
TVIF_PARAM
;
/* Set the text of the item. */
/* Set the text of the item. */
...
@@ -694,11 +694,10 @@ HWND CreateTreeView(HWND hwndParent, LPWSTR pHostName, UINT id)
...
@@ -694,11 +694,10 @@ HWND CreateTreeView(HWND hwndParent, LPWSTR pHostName, UINT id)
{
{
RECT
rcClient
;
RECT
rcClient
;
HWND
hwndTV
;
HWND
hwndTV
;
WCHAR
TreeView
[]
=
{
'T'
,
'r'
,
'e'
,
'e'
,
' '
,
'V'
,
'i'
,
'e'
,
'w'
,
0
};
/* Get the dimensions of the parent window's client area, and create the tree view control. */
/* Get the dimensions of the parent window's client area, and create the tree view control. */
GetClientRect
(
hwndParent
,
&
rcClient
);
GetClientRect
(
hwndParent
,
&
rcClient
);
hwndTV
=
CreateWindowExW
(
WS_EX_CLIENTEDGE
,
WC_TREEVIEWW
,
TreeView
,
hwndTV
=
CreateWindowExW
(
WS_EX_CLIENTEDGE
,
WC_TREEVIEWW
,
L"Tree View"
,
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
TVS_HASLINES
|
TVS_HASBUTTONS
|
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
TVS_HASLINES
|
TVS_HASBUTTONS
|
TVS_LINESATROOT
|
TVS_EDITLABELS
|
TVS_SHOWSELALWAYS
,
TVS_LINESATROOT
|
TVS_EDITLABELS
|
TVS_SHOWSELALWAYS
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
...
...
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