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
9d519093
Commit
9d519093
authored
Nov 04, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Nov 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- RegConnectRegistryA fails on Win9x when Remote Registry Service is
not installed (WinReg.DLL is missing). - Test "\\" prefixed computer names too.
parent
85b3f37d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
registry.c
dlls/advapi32/tests/registry.c
+19
-2
No files found.
dlls/advapi32/tests/registry.c
View file @
9d519093
...
...
@@ -601,22 +601,39 @@ static BOOL set_privileges(LPCSTR privilege, BOOL set)
static
void
test_regconnectregistry
(
void
)
{
CHAR
compName
[
MAX_COMPUTERNAME_LENGTH
+
1
];
CHAR
netwName
[
MAX_COMPUTERNAME_LENGTH
+
3
];
/* 2 chars for double backslash */
DWORD
len
=
sizeof
(
compName
)
;
BOOL
ret
;
LONG
retl
;
HKEY
hkey
;
SC_HANDLE
schnd
;
DWORD
GLE
;
ret
=
GetComputerNameA
(
compName
,
&
len
);
ok
(
ret
,
"GetComputerName failed err = %ld
\n
"
,
GetLastError
());
if
(
!
ret
)
return
;
lstrcpyA
(
netwName
,
"
\\\\
"
);
lstrcpynA
(
netwName
+
2
,
compName
,
MAX_COMPUTERNAME_LENGTH
+
1
);
retl
=
RegConnectRegistryA
(
compName
,
HKEY_LOCAL_MACHINE
,
&
hkey
);
ok
(
!
retl
,
"RegConnectRegistryA failed err = %ld
\n
"
,
retl
);
ok
(
!
retl
||
retl
==
ERROR_DLL_INIT_FAILED
,
"RegConnectRegistryA failed err = %ld
\n
"
,
retl
);
if
(
!
retl
)
RegCloseKey
(
hkey
);
retl
=
RegConnectRegistryA
(
netwName
,
HKEY_LOCAL_MACHINE
,
&
hkey
);
ok
(
!
retl
||
retl
==
ERROR_DLL_INIT_FAILED
,
"RegConnectRegistryA failed err = %ld
\n
"
,
retl
);
if
(
!
retl
)
RegCloseKey
(
hkey
);
schnd
=
OpenSCManagerA
(
compName
,
NULL
,
GENERIC_READ
);
ok
(
schnd
!=
NULL
,
"OpenSCManagerA failed err = %ld
\n
"
,
GetLastError
());
GLE
=
GetLastError
();
ok
(
schnd
!=
NULL
||
GLE
==
ERROR_CALL_NOT_IMPLEMENTED
,
"OpenSCManagerA failed err = %ld
\n
"
,
GLE
);
CloseServiceHandle
(
schnd
);
schnd
=
OpenSCManagerA
(
netwName
,
NULL
,
GENERIC_READ
);
GLE
=
GetLastError
();
ok
(
schnd
!=
NULL
||
GLE
==
ERROR_CALL_NOT_IMPLEMENTED
,
"OpenSCManagerA failed err = %ld
\n
"
,
GLE
);
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