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
6cd1076f
Commit
6cd1076f
authored
Jan 28, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add a test to show that OpenSCManager clears last error on success.
parent
cc01eb8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
service.c
dlls/advapi32/tests/service.c
+1
-1
No files found.
dlls/advapi32/tests/service.c
View file @
6cd1076f
...
...
@@ -101,7 +101,6 @@ static void test_open_scm(void)
CloseServiceHandle
(
scm_handle
);
/* Just in case */
/* Proper call with an empty hostname */
SetLastError
(
0xdeadbeef
);
scm_handle
=
OpenSCManagerA
(
""
,
SERVICES_ACTIVE_DATABASEA
,
SC_MANAGER_CONNECT
);
ok
(
scm_handle
!=
NULL
,
"Expected success, got error %u
\n
"
,
GetLastError
());
CloseServiceHandle
(
scm_handle
);
...
...
@@ -109,6 +108,7 @@ static void test_open_scm(void)
/* Again a correct one */
SetLastError
(
0xdeadbeef
);
scm_handle
=
OpenSCManagerA
(
NULL
,
NULL
,
SC_MANAGER_CONNECT
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
GetLastError
());
ok
(
scm_handle
!=
NULL
,
"Expected success, got error %u
\n
"
,
GetLastError
());
CloseServiceHandle
(
scm_handle
);
}
...
...
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