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
ae125159
Commit
ae125159
authored
Jan 20, 2015
by
André Hentschel
Committed by
Alexandre Julliard
Jan 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't test function directly when reporting GetLastError().
parent
ba0d1586
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pipe.c
dlls/kernel32/tests/pipe.c
+3
-2
No files found.
dlls/kernel32/tests/pipe.c
View file @
ae125159
...
...
@@ -89,7 +89,7 @@ static BOOL RpcReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPDWORD
{
struct
rpcThreadArgs
rpcargs
;
HANDLE
thread
;
DWORD
threadId
;
DWORD
threadId
,
ret
;
rpcargs
.
returnValue
=
0
;
rpcargs
.
lastError
=
GetLastError
();
...
...
@@ -102,7 +102,8 @@ static BOOL RpcReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPDWORD
thread
=
CreateThread
(
NULL
,
0
,
rpcThreadMain
,
(
void
*
)
&
rpcargs
,
0
,
&
threadId
);
ok
(
thread
!=
NULL
,
"CreateThread failed. %d
\n
"
,
GetLastError
());
ok
(
WaitForSingleObject
(
thread
,
INFINITE
)
==
WAIT_OBJECT_0
,
"WaitForSingleObject failed with %d.
\n
"
,
GetLastError
());
ret
=
WaitForSingleObject
(
thread
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"WaitForSingleObject failed with %d.
\n
"
,
GetLastError
());
CloseHandle
(
thread
);
SetLastError
(
rpcargs
.
lastError
);
...
...
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