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
e9c1f811
Commit
e9c1f811
authored
Apr 30, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fully initialize message test data (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
870de39c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
comboex.c
dlls/comctl32/tests/comboex.c
+1
-1
header.c
dlls/comctl32/tests/header.c
+1
-2
treeview.c
dlls/comctl32/tests/treeview.c
+1
-3
No files found.
dlls/comctl32/tests/comboex.c
View file @
e9c1f811
...
...
@@ -85,8 +85,8 @@ static LRESULT WINAPI editbox_subclass_proc(HWND hwnd, UINT message, WPARAM wPar
{
WNDPROC
oldproc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
msg
.
message
=
message
;
msg
.
flags
=
sent
|
wparam
|
lparam
;
...
...
dlls/comctl32/tests/header.c
View file @
e9c1f811
...
...
@@ -403,15 +403,14 @@ static LRESULT WINAPI header_subclass_proc(HWND hwnd, UINT message, WPARAM wPara
{
WNDPROC
oldproc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
msg
.
message
=
message
;
msg
.
flags
=
sent
|
wparam
|
lparam
;
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
msg
.
id
=
0
;
add_message
(
sequences
,
HEADER_SEQ_INDEX
,
&
msg
);
defwndproc_counter
++
;
...
...
dlls/comctl32/tests/treeview.c
View file @
e9c1f811
...
...
@@ -1098,7 +1098,7 @@ static void test_get_set_unicodeformat(void)
static
LRESULT
CALLBACK
parent_wnd_proc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
;
struct
message
msg
=
{
0
}
;
LRESULT
ret
;
RECT
rect
;
HTREEITEM
visibleItem
;
...
...
@@ -1110,8 +1110,6 @@ static LRESULT CALLBACK parent_wnd_proc(HWND hWnd, UINT message, WPARAM wParam,
msg
.
lParam
=
lParam
;
if
(
message
==
WM_NOTIFY
&&
lParam
)
msg
.
id
=
((
NMHDR
*
)
lParam
)
->
code
;
else
msg
.
id
=
0
;
/* log system messages, except for painting */
if
(
message
<
WM_USER
&&
...
...
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