Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
484a5357
Commit
484a5357
authored
Jan 15, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove superfluous pointer casts.
parent
5f3ac30b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
listview.c
programs/regedit/listview.c
+2
-2
treeview.c
programs/regedit/treeview.c
+1
-1
No files found.
programs/regedit/listview.c
View file @
484a5357
...
...
@@ -179,7 +179,7 @@ static void AddEntryToList(HWND hwndLV, LPWSTR Name, DWORD dwValType,
break
;
case
REG_BINARY
:
{
unsigned
int
i
;
LPBYTE
pData
=
(
LPBYTE
)
ValBuf
;
LPBYTE
pData
=
ValBuf
;
LPWSTR
strBinary
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwCount
*
sizeof
(
WCHAR
)
*
3
+
sizeof
(
WCHAR
));
WCHAR
format
[]
=
{
'%'
,
'0'
,
'2'
,
'X'
,
' '
,
0
};
for
(
i
=
0
;
i
<
dwCount
;
i
++
)
...
...
@@ -476,7 +476,7 @@ HWND CreateListView(HWND hwndParent, UINT id)
hwndLV
=
CreateWindowExW
(
WS_EX_CLIENTEDGE
,
WC_LISTVIEWW
,
ListView
,
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
LVS_REPORT
|
LVS_EDITLABELS
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
hwndParent
,
(
HMENU
)
ULongToHandle
(
id
),
hInst
,
NULL
);
hwndParent
,
ULongToHandle
(
id
),
hInst
,
NULL
);
if
(
!
hwndLV
)
return
NULL
;
SendMessageW
(
hwndLV
,
LVM_SETUNICODEFORMAT
,
TRUE
,
0
);
SendMessageW
(
hwndLV
,
LVM_SETEXTENDEDLISTVIEWSTYLE
,
0
,
LVS_EX_FULLROWSELECT
);
...
...
programs/regedit/treeview.c
View file @
484a5357
...
...
@@ -672,7 +672,7 @@ HWND CreateTreeView(HWND hwndParent, LPWSTR pHostName, UINT id)
hwndTV
=
CreateWindowExW
(
WS_EX_CLIENTEDGE
,
WC_TREEVIEWW
,
TreeView
,
WS_VISIBLE
|
WS_CHILD
|
WS_TABSTOP
|
TVS_HASLINES
|
TVS_HASBUTTONS
|
TVS_LINESATROOT
,
0
,
0
,
rcClient
.
right
,
rcClient
.
bottom
,
hwndParent
,
(
HMENU
)
ULongToHandle
(
id
),
hInst
,
NULL
);
hwndParent
,
ULongToHandle
(
id
),
hInst
,
NULL
);
SendMessageW
(
hwndTV
,
TVM_SETUNICODEFORMAT
,
TRUE
,
0
);
/* Initialize the image list, and add items to the control. */
if
(
!
InitTreeViewImageLists
(
hwndTV
)
||
!
InitTreeViewItems
(
hwndTV
,
pHostName
))
{
...
...
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