Re: Advapi32/service.c fix
17 Dec
2004
17 Dec
'04
2:37 p.m.
"Ivan Leo Puoti" <puoti(a)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.
7666
Age (days ago)
7666
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov