advapi32/service: Be a bit more consistent.

This commit is contained in:
Paul Vriens 2007-07-30 11:42:15 +02:00 committed by Alexandre Julliard
parent 9c2d8c73aa
commit 9b8e9516ab
1 changed files with 2 additions and 2 deletions

View File

@ -2283,7 +2283,7 @@ BOOL WINAPI GetServiceDisplayNameA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
/* Last error will be set by GetServiceDisplayNameW and must be preserved */
GLE = GetLastError();
if (!lpDisplayName && lpcchBuffer && !ret && (GLE == ERROR_INSUFFICIENT_BUFFER))
if (!lpDisplayName && *lpcchBuffer && !ret && (GLE == ERROR_INSUFFICIENT_BUFFER))
{
/* Request for buffersize.
*
@ -2291,7 +2291,7 @@ BOOL WINAPI GetServiceDisplayNameA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
*/
size = sizeW * 2;
}
else if (lpDisplayName && lpcchBuffer && !ret)
else if (lpDisplayName && *lpcchBuffer && !ret)
{
/* Request for displayname.
*