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
44b92e57
Commit
44b92e57
authored
Mar 15, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test winstation and desktop access rights.
parent
39e70374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
winstation.c
dlls/user32/tests/winstation.c
+14
-0
No files found.
dlls/user32/tests/winstation.c
View file @
44b92e57
...
...
@@ -121,7 +121,9 @@ static void test_handles(void)
char
buffer
[
29
],
default_name
[
29
]
=
""
;
DWORD
size
;
BOOL
ret
;
OBJECT_BASIC_INFORMATION
info
;
TOKEN_STATISTICS
token_stats
;
NTSTATUS
status
;
/* win stations */
...
...
@@ -133,6 +135,12 @@ static void test_handles(void)
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"bad last error %ld
\n
"
,
GetLastError
()
);
print_object
(
w1
);
status
=
NtQueryObject
(
w1
,
ObjectBasicInformation
,
&
info
,
sizeof
(
info
),
NULL
);
ok
(
!
status
,
"NtQueryObject failed, status %#lx
\n
"
,
status
);
todo_wine
ok
(
info
.
GrantedAccess
==
(
STANDARD_RIGHTS_REQUIRED
|
WINSTA_ALL_ACCESS
),
"Got unexpected access %#lx
\n
"
,
info
.
GrantedAccess
);
flags
=
0
;
ok
(
GetHandleInformation
(
w1
,
&
flags
),
"GetHandleInformation failed
\n
"
);
ok
(
!
(
flags
&
HANDLE_FLAG_PROTECT_FROM_CLOSE
)
||
...
...
@@ -270,6 +278,12 @@ static void test_handles(void)
ok
(
GetHandleInformation
(
d1
,
&
flags
),
"GetHandleInformation failed
\n
"
);
ok
(
!
(
flags
&
HANDLE_FLAG_PROTECT_FROM_CLOSE
),
"handle %p PROTECT_FROM_CLOSE set
\n
"
,
d1
);
status
=
NtQueryObject
(
d1
,
ObjectBasicInformation
,
&
info
,
sizeof
(
info
),
NULL
);
ok
(
!
status
,
"NtQueryObject failed, status %#lx
\n
"
,
status
);
todo_wine
ok
(
info
.
GrantedAccess
==
(
STANDARD_RIGHTS_REQUIRED
|
DESKTOP_ALL_ACCESS
),
"Got unexpected access %#lx
\n
"
,
info
.
GrantedAccess
);
SetLastError
(
0xdeadbeef
);
ok
(
!
CloseDesktop
(
d1
),
"closing thread desktop succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_BUSY
||
broken
(
GetLastError
()
==
0xdeadbeef
),
/* wow64 */
...
...
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