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
e849a566
Commit
e849a566
authored
Dec 09, 2004
by
Alexander Yaworsky
Committed by
Alexandre Julliard
Dec 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check service database name in OpenSCManager().
parent
1e23777a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
service.c
dlls/advapi32/service.c
+17
-5
No files found.
dlls/advapi32/service.c
View file @
e849a566
...
...
@@ -748,11 +748,23 @@ SC_HANDLE WINAPI OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
TRACE
(
"(%s,%s,0x%08lx)
\n
"
,
debugstr_w
(
lpMachineName
),
debugstr_w
(
lpDatabaseName
),
dwDesiredAccess
);
/*
* FIXME: what is lpDatabaseName?
* It should be set to "SERVICES_ACTIVE_DATABASE" according to
* docs, but what if it isn't?
*/
if
(
lpDatabaseName
)
{
if
(
strcmpiW
(
lpDatabaseName
,
SERVICES_ACTIVE_DATABASEW
)
==
0
)
{
/* noop, all right */
}
else
if
(
strcmpiW
(
lpDatabaseName
,
SERVICES_FAILED_DATABASEW
)
==
0
)
{
SetLastError
(
ERROR_DATABASE_DOES_NOT_EXIST
);
return
NULL
;
}
else
{
SetLastError
(
ERROR_INVALID_NAME
);
return
NULL
;
}
}
retval
=
alloc_sc_handle
(
SC_HTYPE_MANAGER
);
if
(
NULL
==
retval
)
return
NULL
;
...
...
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