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
298e050b
Commit
298e050b
authored
Mar 10, 2014
by
Qian Hong
Committed by
Alexandre Julliard
Mar 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Skip more winstation tests when no enough privileges.
parent
4c062b37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
winstation.c
dlls/user32/tests/winstation.c
+11
-1
No files found.
dlls/user32/tests/winstation.c
View file @
298e050b
...
...
@@ -297,7 +297,8 @@ static BOOL CALLBACK open_window_station_callbackA(LPSTR winsta, LPARAM lp)
static
void
test_enumstations
(
void
)
{
BOOL
ret
;
DWORD
ret
;
HWINSTA
hwinsta
;
if
(
0
)
/* Crashes instead */
{
...
...
@@ -307,6 +308,15 @@ static void test_enumstations(void)
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"LastError is set to %08x
\n
"
,
GetLastError
());
}
hwinsta
=
CreateWindowStationA
(
"winsta_test"
,
0
,
WINSTA_ALL_ACCESS
,
NULL
);
ret
=
GetLastError
();
ok
(
hwinsta
!=
NULL
||
ret
==
ERROR_ACCESS_DENIED
,
"CreateWindowStation failed (%u)
\n
"
,
ret
);
if
(
!
hwinsta
)
{
win_skip
(
"Not enough privileges for CreateWindowStation
\n
"
);
return
;
}
SetLastError
(
0xdeadbeef
);
ret
=
EnumWindowStationsA
(
open_window_station_callbackA
,
0x12345
);
ok
(
ret
==
0x12345
,
"EnumWindowStationsA returned %x
\n
"
,
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