Commit 9b8e9516 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

advapi32/service: Be a bit more consistent.

parent 9c2d8c73
......@@ -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.
*
......
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