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
a0637a7f
Commit
a0637a7f
authored
Oct 15, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Oct 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Skip winstation tests when no enough privileges.
parent
1d124f88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
winstation.c
dlls/user32/tests/winstation.c
+17
-2
No files found.
dlls/user32/tests/winstation.c
View file @
a0637a7f
...
...
@@ -662,8 +662,16 @@ static void test_inputdesktop2(void)
ok
(
thread_desk
!=
NULL
,
"GetThreadDesktop failed!
\n
"
);
w1
=
GetProcessWindowStation
();
ok
(
w1
!=
NULL
,
"GetProcessWindowStation failed!
\n
"
);
SetLastError
(
0xdeadbeef
);
w2
=
CreateWindowStation
(
"winsta_test"
,
0
,
WINSTA_ALL_ACCESS
,
NULL
);
ok
(
w2
!=
NULL
,
"CreateWindowStation failed!
\n
"
);
ret
=
GetLastError
();
ok
(
w2
!=
NULL
||
ret
==
ERROR_ACCESS_DENIED
,
"CreateWindowStation failed (%u)
\n
"
,
ret
);
if
(
!
w2
)
{
win_skip
(
"Not enough privileges for CreateWindowStation
\n
"
);
return
;
}
ret
=
EnumDesktopsA
(
GetProcessWindowStation
(),
desktop_callbackA
,
0
);
ok
(
!
ret
,
"EnumDesktopsA failed!
\n
"
);
input_desk
=
OpenInputDesktop
(
0
,
FALSE
,
DESKTOP_ALL_ACCESS
);
...
...
@@ -804,8 +812,15 @@ static void test_foregroundwindow(void)
hdesks
[
0
]
=
GetThreadDesktop
(
GetCurrentThreadId
());
ok
(
hdesks
[
0
]
!=
NULL
,
"OpenDesktop failed!
\n
"
);
SetLastError
(
0xdeadbeef
);
hdesks
[
1
]
=
CreateDesktop
(
"desk2"
,
NULL
,
NULL
,
0
,
DESKTOP_ALL_ACCESS
,
NULL
);
ok
(
hdesks
[
1
]
!=
NULL
,
"CreateDesktop failed!
\n
"
);
ret
=
GetLastError
();
ok
(
hdesks
[
1
]
!=
NULL
||
ret
==
ERROR_ACCESS_DENIED
,
"CreateDesktop failed (%u)
\n
"
,
ret
);
if
(
!
hdesks
[
1
])
{
win_skip
(
"Not enough privileges for CreateDesktop
\n
"
);
return
;
}
for
(
thread_desk_id
=
0
;
thread_desk_id
<
DESKTOPS
;
thread_desk_id
++
)
{
...
...
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