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
7e1bc58d
Commit
7e1bc58d
authored
Sep 24, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix the winstation tests on NT4.
parent
975b5827
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
winstation.c
dlls/user32/tests/winstation.c
+8
-2
No files found.
dlls/user32/tests/winstation.c
View file @
7e1bc58d
...
...
@@ -122,7 +122,9 @@ static void test_handles(void)
flags
=
0
;
ok
(
GetHandleInformation
(
w1
,
&
flags
),
"GetHandleInformation failed
\n
"
);
ok
(
!
(
flags
&
HANDLE_FLAG_PROTECT_FROM_CLOSE
),
"handle %p PROTECT_FROM_CLOSE set
\n
"
,
w1
);
ok
(
!
(
flags
&
HANDLE_FLAG_PROTECT_FROM_CLOSE
)
||
broken
(
flags
&
HANDLE_FLAG_PROTECT_FROM_CLOSE
),
/* set on nt4 */
"handle %p PROTECT_FROM_CLOSE set
\n
"
,
w1
);
ok
(
DuplicateHandle
(
GetCurrentProcess
(),
w1
,
GetCurrentProcess
(),
(
PHANDLE
)
&
w2
,
0
,
TRUE
,
DUPLICATE_SAME_ACCESS
),
"DuplicateHandle failed
\n
"
);
...
...
@@ -201,7 +203,11 @@ static void test_handles(void)
ok
(
GetLastError
()
==
ERROR_BUSY
,
"bad last error %d
\n
"
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
ok
(
!
CloseHandle
(
d1
),
"closing thread desktop handle failed
\n
"
);
if
(
CloseHandle
(
d1
))
/* succeeds on nt4 */
{
win_skip
(
"NT4 desktop handle management is completely different
\n
"
);
return
;
}
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"bad last error %d
\n
"
,
GetLastError
()
);
ok
(
DuplicateHandle
(
GetCurrentProcess
(),
d1
,
GetCurrentProcess
(),
(
PHANDLE
)
&
d2
,
0
,
...
...
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