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
d5990208
Commit
d5990208
authored
Oct 28, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Oct 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass CreateThread() with a NULL pointer to TID as Win9x does not
create a thread then.
parent
8caef535
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
msg.c
dlls/user/tests/msg.c
+7
-6
No files found.
dlls/user/tests/msg.c
View file @
d5990208
...
...
@@ -6061,6 +6061,7 @@ static void test_SendMessageTimeout(void)
MSG
msg
;
HANDLE
thread
;
struct
thread_info
info
;
DWORD
tid
;
info
.
hwnd
=
CreateWindowA
(
"TestWindowClass"
,
NULL
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
200
,
200
,
0
,
0
,
0
,
NULL
);
...
...
@@ -6069,7 +6070,7 @@ static void test_SendMessageTimeout(void)
info
.
timeout
=
1000
;
info
.
ret
=
0xdeadbeef
;
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
&
tid
);
wait_for_thread
(
thread
);
CloseHandle
(
thread
);
ok
(
info
.
ret
==
1
,
"SendMessageTimeout failed
\n
"
);
...
...
@@ -6077,7 +6078,7 @@ static void test_SendMessageTimeout(void)
info
.
timeout
=
1
;
info
.
ret
=
0xdeadbeef
;
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
&
tid
);
Sleep
(
100
);
/* SendMessageTimeout should timeout here */
wait_for_thread
(
thread
);
CloseHandle
(
thread
);
...
...
@@ -6087,7 +6088,7 @@ static void test_SendMessageTimeout(void)
/* 0 means infinite timeout */
info
.
timeout
=
0
;
info
.
ret
=
0xdeadbeef
;
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
&
tid
);
Sleep
(
100
);
wait_for_thread
(
thread
);
CloseHandle
(
thread
);
...
...
@@ -6097,7 +6098,7 @@ static void test_SendMessageTimeout(void)
/* timeout is treated as signed despite the prototype */
info
.
timeout
=
0x7fffffff
;
info
.
ret
=
0xdeadbeef
;
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
&
tid
);
Sleep
(
100
);
wait_for_thread
(
thread
);
CloseHandle
(
thread
);
...
...
@@ -6106,7 +6107,7 @@ static void test_SendMessageTimeout(void)
info
.
timeout
=
0x80000000
;
info
.
ret
=
0xdeadbeef
;
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
&
tid
);
Sleep
(
100
);
wait_for_thread
(
thread
);
CloseHandle
(
thread
);
...
...
@@ -6117,7 +6118,7 @@ static void test_SendMessageTimeout(void)
SetWindowLongPtrA
(
info
.
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
send_msg_delay_proc
);
info
.
timeout
=
100
;
info
.
ret
=
0xdeadbeef
;
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
NULL
);
thread
=
CreateThread
(
NULL
,
0
,
send_msg_thread
,
&
info
,
0
,
&
tid
);
wait_for_thread
(
thread
);
CloseHandle
(
thread
);
/* we should timeout but still get the message */
...
...
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