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
05e1539b
Commit
05e1539b
authored
Jul 24, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/service: Add another test for GetServiceDisplayName.
parent
d35857df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
service.c
dlls/advapi32/tests/service.c
+10
-0
No files found.
dlls/advapi32/tests/service.c
View file @
05e1539b
...
...
@@ -385,6 +385,7 @@ static void test_get_displayname(void)
WCHAR
displaynameW
[
2048
];
DWORD
displaysize
,
tempsize
,
tempsizeW
;
static
const
CHAR
spooler
[]
=
"Spooler"
;
static
const
CHAR
deadbeef
[]
=
"Deadbeef"
;
static
const
WCHAR
spoolerW
[]
=
{
'S'
,
'p'
,
'o'
,
'o'
,
'l'
,
'e'
,
'r'
,
0
};
/* Having NULL for the size of the buffer will crash on W2K3 */
...
...
@@ -412,6 +413,15 @@ static void test_get_displayname(void)
GetLastError
()
==
ERROR_INVALID_PARAMETER
/* NT4 */
,
"Expected ERROR_INVALID_ADDRESS or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
/* Test for non-existing service */
SetLastError
(
0xdeadbeef
);
displaysize
=
-
1
;
ret
=
GetServiceDisplayNameA
(
scm_handle
,
deadbeef
,
NULL
,
&
displaysize
);
ok
(
!
ret
,
"Expected failure
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SERVICE_DOES_NOT_EXIST
,
"Expected ERROR_SERVICE_DOES_NOT_EXIST, got %d
\n
"
,
GetLastError
());
/* Check if 'Spooler' exists */
svc_handle
=
OpenServiceA
(
scm_handle
,
spooler
,
GENERIC_READ
);
if
(
!
svc_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