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
e92cc29d
Commit
e92cc29d
authored
Nov 16, 2020
by
Jeff Smith
Committed by
Alexandre Julliard
Nov 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Change misleading variable name and type.
Signed-off-by:
Jeff Smith
<
whydoubt@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae79a919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
msg.c
dlls/user32/tests/msg.c
+13
-13
No files found.
dlls/user32/tests/msg.c
View file @
e92cc29d
...
...
@@ -15964,15 +15964,15 @@ static void test_PostMessage(void)
flush_events
();
}
static
LPARAM
g_broadcast_l
param
;
static
WPARAM
g_broadcast_w
param
;
static
LRESULT
WINAPI
broadcast_test_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WNDPROC
oldproc
=
(
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_USERDATA
);
if
(
wParam
==
0xbaadbeef
)
g_broadcast_
l
param
=
wParam
;
g_broadcast_
w
param
=
wParam
;
else
g_broadcast_
l
param
=
0
;
g_broadcast_
w
param
=
0
;
return
CallWindowProcA
(
oldproc
,
hwnd
,
message
,
wParam
,
lParam
);
}
...
...
@@ -16040,7 +16040,7 @@ static void test_broadcast(void)
}
/* send, broadcast */
g_broadcast_
l
param
=
0xdead
;
g_broadcast_
w
param
=
0xdead
;
ret
=
SendMessageTimeoutA
(
HWND_BROADCAST
,
messages
[
i
],
0xbaadbeef
,
0
,
SMTO_NORMAL
,
2000
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_TIMEOUT
)
win_skip
(
"broadcasting test %d, timeout
\n
"
,
i
);
...
...
@@ -16048,18 +16048,18 @@ static void test_broadcast(void)
{
if
(
messages
[
i
]
<
WM_USER
||
messages
[
i
]
>=
0xc000
)
{
ok
(
g_broadcast_
l
param
==
0xbaadbeef
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
l
param
,
GetLastError
());
ok
(
g_broadcast_
w
param
==
0xbaadbeef
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
w
param
,
GetLastError
());
}
else
{
ok
(
g_broadcast_
l
param
==
0xdead
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
l
param
,
GetLastError
());
ok
(
g_broadcast_
w
param
==
0xdead
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
w
param
,
GetLastError
());
}
}
/* send, topmost */
g_broadcast_
l
param
=
0xdead
;
g_broadcast_
w
param
=
0xdead
;
ret
=
SendMessageTimeoutA
(
HWND_TOPMOST
,
messages
[
i
],
0xbaadbeef
,
0
,
SMTO_NORMAL
,
2000
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_TIMEOUT
)
win_skip
(
"broadcasting test %d, timeout
\n
"
,
i
);
...
...
@@ -16067,13 +16067,13 @@ static void test_broadcast(void)
{
if
(
messages
[
i
]
<
WM_USER
||
messages
[
i
]
>=
0xc000
)
{
ok
(
g_broadcast_
l
param
==
0xbaadbeef
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
l
param
,
GetLastError
());
ok
(
g_broadcast_
w
param
==
0xbaadbeef
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
w
param
,
GetLastError
());
}
else
{
ok
(
g_broadcast_
l
param
==
0xdead
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
l
param
,
GetLastError
());
ok
(
g_broadcast_
w
param
==
0xdead
,
"%d: message %04x, got %#lx, error %d
\n
"
,
i
,
messages
[
i
],
g_broadcast_
w
param
,
GetLastError
());
}
}
}
...
...
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