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
1ec91f59
Commit
1ec91f59
authored
Mar 29, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fully initialize message tests data.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e024094b
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
26 deletions
+16
-26
button.c
dlls/comctl32/tests/button.c
+2
-2
datetime.c
dlls/comctl32/tests/datetime.c
+1
-2
listview.c
dlls/comctl32/tests/listview.c
+2
-3
monthcal.c
dlls/comctl32/tests/monthcal.c
+1
-2
pager.c
dlls/comctl32/tests/pager.c
+1
-2
propsheet.c
dlls/comctl32/tests/propsheet.c
+1
-1
syslink.c
dlls/comctl32/tests/syslink.c
+1
-2
tab.c
dlls/comctl32/tests/tab.c
+2
-4
trackbar.c
dlls/comctl32/tests/trackbar.c
+1
-2
treeview.c
dlls/comctl32/tests/treeview.c
+1
-2
updown.c
dlls/comctl32/tests/updown.c
+3
-4
No files found.
dlls/comctl32/tests/button.c
View file @
1ec91f59
...
...
@@ -117,8 +117,8 @@ static BOOL ignore_message( UINT message )
static
LRESULT
CALLBACK
button_subclass_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
id
,
DWORD_PTR
ref_data
)
{
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
if
(
ignore_message
(
message
))
return
pDefSubclassProc
(
hwnd
,
message
,
wParam
,
lParam
);
...
...
@@ -153,8 +153,8 @@ static LRESULT WINAPI test_parent_wndproc(HWND hwnd, UINT message, WPARAM wParam
{
static
LONG
defwndproc_counter
=
0
;
static
LONG
beginpaint_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
if
(
ignore_message
(
message
))
return
0
;
...
...
dlls/comctl32/tests/datetime.c
View file @
1ec91f59
...
...
@@ -137,15 +137,14 @@ static LRESULT WINAPI datetime_subclass_proc(HWND hwnd, UINT message, WPARAM wPa
{
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
,
DATETIME_SEQ_INDEX
,
&
msg
);
defwndproc_counter
++
;
...
...
dlls/comctl32/tests/listview.c
View file @
1ec91f59
...
...
@@ -707,8 +707,8 @@ 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
;
...
...
@@ -741,15 +741,14 @@ 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
;
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
msg
.
id
=
0
;
/* all we need is sizing */
if
(
message
==
WM_WINDOWPOSCHANGING
||
...
...
dlls/comctl32/tests/monthcal.c
View file @
1ec91f59
...
...
@@ -621,15 +621,14 @@ static LRESULT WINAPI monthcal_subclass_proc(HWND hwnd, UINT message, WPARAM wPa
{
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
,
MONTHCAL_SEQ_INDEX
,
&
msg
);
/* some debug output for style changing */
...
...
dlls/comctl32/tests/pager.c
View file @
1ec91f59
...
...
@@ -142,13 +142,12 @@ static HWND create_parent_window(void)
static
LRESULT
WINAPI
pager_subclass_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WNDPROC
oldproc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
struct
message
msg
;
struct
message
msg
=
{
0
}
;
msg
.
message
=
message
;
msg
.
flags
=
sent
|
wparam
|
lparam
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
msg
.
id
=
0
;
add_message
(
sequences
,
PAGER_SEQ_INDEX
,
&
msg
);
return
CallWindowProcA
(
oldproc
,
hwnd
,
message
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/tests/propsheet.c
View file @
1ec91f59
...
...
@@ -710,7 +710,7 @@ static const struct message property_sheet_seq[] = {
static
void
save_message
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
,
INT
receiver
)
{
struct
message
msg
;
struct
message
msg
=
{
0
}
;
if
(
message
<
WM_USER
&&
message
!=
WM_GETICON
&&
...
...
dlls/comctl32/tests/syslink.c
View file @
1ec91f59
...
...
@@ -143,15 +143,14 @@ static WNDPROC syslink_oldproc;
static
LRESULT
WINAPI
syslink_subclass_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
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
,
SYSLINK_SEQ_INDEX
,
&
msg
);
defwndproc_counter
++
;
...
...
dlls/comctl32/tests/tab.c
View file @
1ec91f59
...
...
@@ -300,8 +300,8 @@ create_tabcontrol (DWORD style, DWORD mask)
static
LRESULT
WINAPI
parentWindowProcess
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
/* do not log painting messages */
if
(
message
!=
WM_PAINT
&&
...
...
@@ -317,7 +317,6 @@ static LRESULT WINAPI parentWindowProcess(HWND hwnd, UINT message, WPARAM wParam
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
msg
.
id
=
0
;
add_message
(
sequences
,
PARENT_SEQ_INDEX
,
&
msg
);
}
...
...
@@ -363,8 +362,8 @@ static LRESULT WINAPI tabSubclassProcess(HWND hwnd, UINT message, WPARAM wParam,
{
WNDPROC
oldproc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
/* do not log painting messages */
if
(
message
!=
WM_PAINT
&&
...
...
@@ -380,7 +379,6 @@ static LRESULT WINAPI tabSubclassProcess(HWND hwnd, UINT message, WPARAM wParam,
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
msg
.
id
=
0
;
add_message
(
sequences
,
TAB_SEQ_INDEX
,
&
msg
);
}
...
...
dlls/comctl32/tests/trackbar.c
View file @
1ec91f59
...
...
@@ -439,15 +439,14 @@ static HWND create_parent_window(void){
static
LRESULT
WINAPI
trackbar_subclass_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
){
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
,
TRACKBAR_SEQ_INDEX
,
&
msg
);
defwndproc_counter
++
;
...
...
dlls/comctl32/tests/treeview.c
View file @
1ec91f59
...
...
@@ -383,15 +383,14 @@ static LRESULT WINAPI TreeviewWndProc(HWND hwnd, UINT message, WPARAM wParam, LP
{
static
LONG
defwndproc_counter
=
0
;
LRESULT
ret
;
struct
message
msg
;
WNDPROC
lpOldProc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
struct
message
msg
=
{
0
};
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
,
TREEVIEW_SEQ_INDEX
,
&
msg
);
defwndproc_counter
++
;
...
...
dlls/comctl32/tests/updown.c
View file @
1ec91f59
...
...
@@ -166,8 +166,8 @@ static const struct message test_updown_pos_nochange_seq[] = {
static
LRESULT
WINAPI
parent_wnd_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
LONG
defwndproc_counter
=
0
;
struct
message
msg
=
{
0
};
LRESULT
ret
;
struct
message
msg
;
/* log system messages, except for painting */
if
(
message
<
WM_USER
&&
...
...
@@ -184,7 +184,6 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
msg
.
id
=
0
;
add_message
(
sequences
,
PARENT_SEQ_INDEX
,
&
msg
);
}
...
...
@@ -229,8 +228,8 @@ static LRESULT WINAPI edit_subclass_proc(HWND hwnd, UINT message, WPARAM wParam,
{
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
;
...
...
@@ -269,8 +268,8 @@ static LRESULT WINAPI updown_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
;
...
...
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