In OpenSCManagerW() allow lpDatabaseName to be an empty string.

This commit is contained in:
Ivan Leo Puoti 2004-12-21 16:05:28 +00:00 committed by Alexandre Julliard
parent 2db7165005
commit a329904a3f
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{