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
71c49aac
Commit
71c49aac
authored
Jun 13, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix a test on NT4.
parent
9e62412d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
service.c
dlls/advapi32/tests/service.c
+11
-1
No files found.
dlls/advapi32/tests/service.c
View file @
71c49aac
...
...
@@ -145,7 +145,17 @@ static void test_open_svc(void)
GetServiceDisplayNameA
(
scm_handle
,
spooler
,
NULL
,
&
displaysize
);
/* Get the displayname */
GetServiceDisplayNameA
(
scm_handle
,
spooler
,
displayname
,
&
displaysize
);
/* Try to open the service with this displayname */
/* Try to open the service with this displayname, unless the displayname equals
* the servicename as that would defeat the purpose of this test.
*/
if
(
!
lstrcmpi
(
spooler
,
displayname
))
{
skip
(
"displayname equals servicename
\n
"
);
CloseServiceHandle
(
scm_handle
);
return
;
}
SetLastError
(
0xdeadbeef
);
svc_handle
=
OpenServiceA
(
scm_handle
,
displayname
,
GENERIC_READ
);
ok
(
!
svc_handle
,
"Expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_SERVICE_DOES_NOT_EXIST
,
"Expected ERROR_SERVICE_DOES_NOT_EXIST, got %d
\n
"
,
GetLastError
());
...
...
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