In OpenSCManagerW() allow lpDatabaseName to be an empty string.
This commit is contained in:
parent
2db7165005
commit
a329904a3f
|
@ -748,7 +748,7 @@ SC_HANDLE WINAPI OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
|
|||
TRACE("(%s,%s,0x%08lx)\n", debugstr_w(lpMachineName),
|
||||
debugstr_w(lpDatabaseName), dwDesiredAccess);
|
||||
|
||||
if( lpDatabaseName )
|
||||
if( lpDatabaseName && lpDatabaseName[0] )
|
||||
{
|
||||
if( strcmpiW( lpDatabaseName, SERVICES_ACTIVE_DATABASEW ) == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue