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
7dd647b6
Commit
7dd647b6
authored
Apr 11, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Use skip when OpenSCManagerA is not implemented.
parent
57d20023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
registry.c
dlls/advapi32/tests/registry.c
+11
-7
No files found.
dlls/advapi32/tests/registry.c
View file @
7dd647b6
...
...
@@ -754,8 +754,8 @@ static void test_regconnectregistry( void)
LONG
retl
;
HKEY
hkey
;
SC_HANDLE
schnd
;
DWORD
GLE
;
SetLastError
(
0xdeadbeef
);
ret
=
GetComputerNameA
(
compName
,
&
len
);
ok
(
ret
,
"GetComputerName failed err = %d
\n
"
,
GetLastError
());
if
(
!
ret
)
return
;
...
...
@@ -771,16 +771,20 @@ static void test_regconnectregistry( void)
ok
(
!
retl
||
retl
==
ERROR_DLL_INIT_FAILED
,
"RegConnectRegistryA failed err = %d
\n
"
,
retl
);
if
(
!
retl
)
RegCloseKey
(
hkey
);
SetLastError
(
0xdeadbeef
);
schnd
=
OpenSCManagerA
(
compName
,
NULL
,
GENERIC_READ
);
GLE
=
GetLastError
();
ok
(
schnd
!=
NULL
||
GLE
==
ERROR_CALL_NOT_IMPLEMENTED
,
"OpenSCManagerA failed err = %d
\n
"
,
GLE
);
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
skip
(
"OpenSCManagerA is not implemented
\n
"
);
return
;
}
ok
(
schnd
!=
NULL
,
"OpenSCManagerA failed err = %d
\n
"
,
GetLastError
());
CloseServiceHandle
(
schnd
);
SetLastError
(
0xdeadbeef
);
schnd
=
OpenSCManagerA
(
netwName
,
NULL
,
GENERIC_READ
);
GLE
=
GetLastError
();
ok
(
schnd
!=
NULL
||
GLE
==
ERROR_CALL_NOT_IMPLEMENTED
,
"OpenSCManagerA failed err = %d
\n
"
,
GLE
);
ok
(
schnd
!=
NULL
,
"OpenSCManagerA failed err = %d
\n
"
,
GetLastError
());
CloseServiceHandle
(
schnd
);
}
...
...
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