Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1da9e7c0
Commit
1da9e7c0
authored
Mar 17, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Better check the EnumServicesStatusExW() output.
It only has this one test.
parent
3bfe3157
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
service.c
dlls/advapi32/tests/service.c
+6
-0
No files found.
dlls/advapi32/tests/service.c
View file @
1da9e7c0
...
...
@@ -1631,10 +1631,16 @@ static void test_enum_svc_ex(void)
/* Test to show we get the same needed buffer size for the W-call */
neededW
=
0xdeadbeef
;
returnedW
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
pEnumServicesStatusExW
(
scm_handle
,
0
,
SERVICE_WIN32
,
SERVICE_STATE_ALL
,
NULL
,
0
,
&
neededW
,
&
returnedW
,
NULL
,
NULL
);
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
returnedW
==
0
,
"Expected no service returned, got %ld
\n
"
,
returned
);
ok
(
neededW
!=
0xdeadbeef
&&
neededW
>
0
,
"Expected the needed buffer size
\n
"
);
ok
(
neededW
==
needed
,
"Expected needed buffersize to be the same for A- and W-calls
\n
"
);
ok
(
GetLastError
()
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %ld
\n
"
,
GetLastError
());
/* Store the needed bytes */
tempneeded
=
needed
;
...
...
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