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
a1da7dbd
Commit
a1da7dbd
authored
Dec 30, 2017
by
André Hentschel
Committed by
Alexandre Julliard
Jan 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't test functions directly when reporting GetLastError().
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
063fd7a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
process.c
dlls/kernel32/tests/process.c
+5
-3
No files found.
dlls/kernel32/tests/process.c
View file @
a1da7dbd
...
...
@@ -3035,7 +3035,7 @@ static void test_SuspendProcessNewThread(void)
PVOID
exe_base
,
exit_thread_ptr
;
IMAGE_NT_HEADERS
nt_header
;
HANDLE
thread_handle
=
NULL
;
DWORD
exit_code
=
0
;
DWORD
dret
,
exit_code
=
0
;
CONTEXT
ctx
;
exit_thread_ptr
=
GetProcAddress
(
hkernel32
,
"ExitThread"
);
...
...
@@ -3097,8 +3097,10 @@ static void test_SuspendProcessNewThread(void)
#endif
ResumeThread
(
thread_handle
);
ok
(
WaitForSingleObject
(
thread_handle
,
60000
)
==
WAIT_OBJECT_0
,
"Waiting for remote thread failed (%d)
\n
"
,
GetLastError
());
ok
(
GetExitCodeThread
(
thread_handle
,
&
exit_code
),
"Failed to retrieve remote thread exit code (%d)
\n
"
,
GetLastError
());
dret
=
WaitForSingleObject
(
thread_handle
,
60000
);
ok
(
dret
==
WAIT_OBJECT_0
,
"Waiting for remote thread failed (%d)
\n
"
,
GetLastError
());
ret
=
GetExitCodeThread
(
thread_handle
,
&
exit_code
);
ok
(
ret
,
"Failed to retrieve remote thread exit code (%d)
\n
"
,
GetLastError
());
ok
(
exit_code
==
0x1234
,
"Invalid remote thread exit code
\n
"
);
ret
=
are_imports_resolved
(
pi
.
hProcess
,
exe_base
,
&
nt_header
);
...
...
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