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
968f2147
Commit
968f2147
authored
Feb 09, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Use the SendMessage instead of ListView_GetItem.
SendMessage() is more explicit and also gets rid of three gcc -Wextra warning: value computed is not used
parent
7a8638d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
help.c
dlls/hhctrl.ocx/help.c
+3
-3
No files found.
dlls/hhctrl.ocx/help.c
View file @
968f2147
...
...
@@ -550,7 +550,7 @@ static LRESULT CALLBACK Child_WndProc(HWND hWnd, UINT message, WPARAM wParam, LP
lvItem
.
iItem
=
(
int
)
SendMessageW
(
hwndList
,
LVM_GETSELECTIONMARK
,
0
,
0
);
lvItem
.
mask
=
TVIF_PARAM
;
ListView_GetItemW
(
hwndList
,
&
lvItem
);
SendMessageW
(
hwndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
OnTopicChange
(
info
,
(
void
*
)
lvItem
.
lParam
);
return
0
;
}
...
...
@@ -578,7 +578,7 @@ static LRESULT CALLBACK Child_WndProc(HWND hWnd, UINT message, WPARAM wParam, LP
lvItem
.
iItem
=
(
int
)
SendMessageW
(
hwndList
,
LVM_GETSELECTIONMARK
,
0
,
0
);
lvItem
.
mask
=
TVIF_PARAM
;
ListView_GetItemW
(
hwndList
,
&
lvItem
);
SendMessageW
(
hwndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
OnTopicChange
(
info
,
(
void
*
)
lvItem
.
lParam
);
return
0
;
}
...
...
@@ -1095,7 +1095,7 @@ static LRESULT CALLBACK PopupChild_WndProc(HWND hWnd, UINT message, WPARAM wPara
lvItem
.
iItem
=
(
int
)
SendMessageW
(
info
->
popup
.
hwndList
,
LVM_GETSELECTIONMARK
,
0
,
0
);
lvItem
.
mask
=
TVIF_PARAM
;
ListView_GetItemW
(
info
->
popup
.
hwndList
,
&
lvItem
);
SendMessageW
(
info
->
popup
.
hwndList
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
lvItem
);
iter
=
(
IndexSubItem
*
)
lvItem
.
lParam
;
NavigateToChm
(
info
,
info
->
index
->
merge
.
chm_file
,
iter
->
local
);
ShowWindow
(
info
->
popup
.
hwndPopup
,
SW_HIDE
);
...
...
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