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
1f297893
Commit
1f297893
authored
Feb 23, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Give meaningful names to the structures used to transfer
information to the test threads.
parent
2ee5a5bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
msg.c
dlls/user/tests/msg.c
+10
-10
No files found.
dlls/user/tests/msg.c
View file @
1f297893
...
...
@@ -5535,12 +5535,12 @@ static void test_message_conversion(void)
ok
(
ret
,
"DestroyWindow() error %ld
\n
"
,
GetLastError
());
}
typedef
struct
_thread
_info
struct
timer
_info
{
HWND
hWnd
;
HANDLE
handles
[
2
];
DWORD
id
;
}
thread_info
;
};
static
VOID
CALLBACK
tfunc
(
HWND
hwnd
,
UINT
uMsg
,
UINT
id
,
DWORD
dwTime
)
{
...
...
@@ -5550,7 +5550,7 @@ static VOID CALLBACK tfunc(HWND hwnd, UINT uMsg, UINT id, DWORD dwTime)
static
DWORD
WINAPI
timer_thread_proc
(
LPVOID
x
)
{
thread
_info
*
info
=
x
;
struct
timer
_info
*
info
=
x
;
DWORD
r
;
r
=
KillTimer
(
info
->
hWnd
,
0x19
);
...
...
@@ -5565,7 +5565,7 @@ static DWORD WINAPI timer_thread_proc(LPVOID x)
static
void
test_timers
(
void
)
{
thread
_info
info
;
struct
timer
_info
info
;
DWORD
id
;
info
.
hWnd
=
CreateWindow
(
"TestWindowClass"
,
NULL
,
...
...
@@ -6432,7 +6432,7 @@ static const struct message WmUser[] = {
{
0
}
};
struct
thread
_info
struct
sendmsg
_info
{
HWND
hwnd
;
DWORD
timeout
;
...
...
@@ -6441,7 +6441,7 @@ struct thread_info
static
DWORD
CALLBACK
send_msg_thread
(
LPVOID
arg
)
{
struct
thread
_info
*
info
=
arg
;
struct
sendmsg
_info
*
info
=
arg
;
info
->
ret
=
SendMessageTimeoutA
(
info
->
hwnd
,
WM_USER
,
0
,
0
,
0
,
info
->
timeout
,
NULL
);
if
(
!
info
->
ret
)
ok
(
GetLastError
()
==
ERROR_TIMEOUT
,
"unexpected error %ld
\n
"
,
GetLastError
());
return
0
;
...
...
@@ -6466,7 +6466,7 @@ static void test_SendMessageTimeout(void)
{
MSG
msg
;
HANDLE
thread
;
struct
thread
_info
info
;
struct
sendmsg
_info
info
;
DWORD
tid
;
info
.
hwnd
=
CreateWindowA
(
"TestWindowClass"
,
NULL
,
WS_OVERLAPPEDWINDOW
,
...
...
@@ -6783,7 +6783,7 @@ static const struct message WmUserChar[] = {
#define EV_SENDMSG 1
#define EV_ACK 2
struct
thread_info_2
struct
peekmsg_info
{
HWND
hwnd
;
HANDLE
hevent
[
3
];
/* 0 - start/stop, 1 - SendMessage, 2 - ack */
...
...
@@ -6792,7 +6792,7 @@ struct thread_info_2
static
DWORD
CALLBACK
send_msg_thread_2
(
void
*
param
)
{
DWORD
ret
;
struct
thread_info_2
*
info
=
param
;
struct
peekmsg_info
*
info
=
param
;
trace
(
"thread: waiting for start
\n
"
);
WaitForSingleObject
(
info
->
hevent
[
EV_START_STOP
],
INFINITE
);
...
...
@@ -6830,7 +6830,7 @@ static void test_PeekMessage(void)
DWORD
tid
,
qstatus
;
UINT
qs_all_input
=
QS_ALLINPUT
;
UINT
qs_input
=
QS_INPUT
;
struct
thread_info_2
info
;
struct
peekmsg_info
info
;
info
.
hwnd
=
CreateWindowA
(
"TestWindowClass"
,
NULL
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
200
,
200
,
0
,
0
,
0
,
NULL
);
...
...
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