Advapi32/service.c fix

Dmitry Timoshkov dmitry at baikal.ru
Fri Dec 17 08:37:08 CST 2004


"Ivan Leo Puoti" <puoti at inwind.it> wrote:

> -        if( strcmpiW( lpDatabaseName, SERVICES_ACTIVE_DATABASEW ) == 0 )
> +        if( (strcmpiW(lpDatabaseName, SERVICES_ACTIVE_DATABASEW)==0) || (lpDatabaseName[0]==(INT)NULL))

It's much simpler to use either !lpDatabaseName[0] or lpDatabaseName[0] == 0
instead of several levels of casting.

-- 
Dmitry.




More information about the wine-devel mailing list