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
48cffa03
Commit
48cffa03
authored
May 28, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Restore the stderr handle after the closing test.
parent
a10e9ba0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
process.c
dlls/kernel32/tests/process.c
+7
-3
No files found.
dlls/kernel32/tests/process.c
View file @
48cffa03
...
...
@@ -1742,7 +1742,7 @@ static void test_ProcessName(void)
static
void
test_Handles
(
void
)
{
HANDLE
handle
=
GetCurrentProcess
();
HANDLE
h2
;
HANDLE
h2
,
h3
;
BOOL
ret
;
DWORD
code
;
...
...
@@ -1773,12 +1773,16 @@ static void test_Handles(void)
handle
=
GetStdHandle
(
STD_ERROR_HANDLE
);
ok
(
handle
!=
0
,
"handle %p
\n
"
,
handle
);
DuplicateHandle
(
GetCurrentProcess
(),
handle
,
GetCurrentProcess
(),
&
h3
,
0
,
TRUE
,
DUPLICATE_SAME_ACCESS
);
SetStdHandle
(
STD_ERROR_HANDLE
,
h3
);
CloseHandle
(
(
HANDLE
)
STD_ERROR_HANDLE
);
h2
=
GetStdHandle
(
STD_ERROR_HANDLE
);
ok
(
h2
==
0
||
broken
(
h2
==
h
andle
)
||
/* nt4, w2k */
broken
(
h2
==
h
3
)
||
/* nt4, w2k */
broken
(
h2
==
INVALID_HANDLE_VALUE
),
/* win9x */
"wrong handle %p/%p
\n
"
,
h2
,
handle
);
"wrong handle %p/%p
\n
"
,
h2
,
h3
);
SetStdHandle
(
STD_ERROR_HANDLE
,
handle
);
}
static
void
test_SystemInfo
(
void
)
...
...
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