Commit a329904a authored by Ivan Leo Puoti's avatar Ivan Leo Puoti Committed by Alexandre Julliard

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

parent 2db71650
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment