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
1c61a53e
Commit
1c61a53e
authored
Jan 08, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Jan 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't test last error on success.
parent
460991a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
console.c
dlls/kernel32/tests/console.c
+2
-11
No files found.
dlls/kernel32/tests/console.c
View file @
1c61a53e
...
...
@@ -1152,22 +1152,13 @@ static void test_OpenConsoleW(void)
CloseHandle
(
ret
);
}
/* OpenConsoleW should not touch the last error on success. */
SetLastError
(
0xdeadbeef
);
ret
=
pOpenConsoleW
(
coninW
,
GENERIC_READ
|
GENERIC_WRITE
,
FALSE
,
OPEN_EXISTING
);
ok
(
ret
!=
INVALID_HANDLE_VALUE
,
"Expected OpenConsoleW to return a valid handle
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected the last error to be untouched, got %u
\n
"
,
GetLastError
());
ok
(
ret
!=
INVALID_HANDLE_VALUE
,
"Expected OpenConsoleW to return a valid handle
\n
"
);
if
(
ret
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
ret
);
SetLastError
(
0xdeadbeef
);
ret
=
pOpenConsoleW
(
conoutW
,
GENERIC_READ
|
GENERIC_WRITE
,
FALSE
,
OPEN_EXISTING
);
ok
(
ret
!=
INVALID_HANDLE_VALUE
,
"Expected OpenConsoleW to return a valid handle
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected the last error to be untouched, got %u
\n
"
,
GetLastError
());
ok
(
ret
!=
INVALID_HANDLE_VALUE
,
"Expected OpenConsoleW to return a valid handle
\n
"
);
if
(
ret
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
ret
);
}
...
...
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