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
44273b00
Commit
44273b00
authored
Jan 23, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Make tests run on win9x/NT4 again.
parent
fc49a338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
service.c
dlls/advapi32/tests/service.c
+9
-1
No files found.
dlls/advapi32/tests/service.c
View file @
44273b00
...
...
@@ -857,6 +857,8 @@ static void test_queryconfig2(void)
static
const
CHAR
password
[]
=
""
;
static
const
CHAR
description
[]
=
"Description"
;
HMODULE
dllhandle
=
GetModuleHandleA
(
"advapi32.dll"
);
BOOL
(
WINAPI
*
pChangeServiceConfig2A
)(
SC_HANDLE
,
DWORD
,
LPVOID
)
=
(
void
*
)
GetProcAddress
(
dllhandle
,
"ChangeServiceConfig2A"
);
BOOL
(
WINAPI
*
pQueryServiceConfig2A
)(
SC_HANDLE
,
DWORD
,
LPBYTE
,
DWORD
,
LPDWORD
)
=
(
void
*
)
GetProcAddress
(
dllhandle
,
"QueryServiceConfig2A"
);
BOOL
(
WINAPI
*
pQueryServiceConfig2W
)(
SC_HANDLE
,
DWORD
,
LPBYTE
,
DWORD
,
LPDWORD
)
...
...
@@ -957,8 +959,14 @@ static void test_queryconfig2(void)
ok
(
ERROR_INSUFFICIENT_BUFFER
==
GetLastError
(),
"expected error ERROR_INSUFFICIENT_BUFFER, got %d
\n
"
,
GetLastError
());
ok
(
needed
==
sizeof
(
SERVICE_DESCRIPTIONA
),
"expected needed to be %d, got %d
\n
"
,
sizeof
(
SERVICE_DESCRIPTIONA
),
needed
);
if
(
!
pChangeServiceConfig2A
)
{
skip
(
"function ChangeServiceConfig2A not present
\n
"
);
goto
cleanup
;
}
pConfig
->
lpDescription
=
(
LPSTR
)
description
;
ret
=
ChangeServiceConfig2A
(
svc_handle
,
SERVICE_CONFIG_DESCRIPTION
,
buffer
);
ret
=
p
ChangeServiceConfig2A
(
svc_handle
,
SERVICE_CONFIG_DESCRIPTION
,
buffer
);
ok
(
ret
,
"ChangeServiceConfig2A failed
\n
"
);
if
(
!
ret
)
{
goto
cleanup
;
...
...
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