In OpenSCManagerW() allow lpDatabaseName to be an empty string.
authorIvan Leo Puoti <puoti@inwind.it>
Tue, 21 Dec 2004 16:05:28 +0000 (16:05 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 21 Dec 2004 16:05:28 +0000 (16:05 +0000)
dlls/advapi32/service.c

index 5629ea7797d08f96d28bc341357655095fbf9c5d..404d51ebd91e67c50590ca1e20b44b67eb9c0ee4 100644 (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 )
         {