advapi32/service: Be a bit more consistent.
This commit is contained in:
parent
9c2d8c73aa
commit
9b8e9516ab
|
@ -2283,7 +2283,7 @@ BOOL WINAPI GetServiceDisplayNameA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
|
||||||
/* Last error will be set by GetServiceDisplayNameW and must be preserved */
|
/* Last error will be set by GetServiceDisplayNameW and must be preserved */
|
||||||
GLE = GetLastError();
|
GLE = GetLastError();
|
||||||
|
|
||||||
if (!lpDisplayName && lpcchBuffer && !ret && (GLE == ERROR_INSUFFICIENT_BUFFER))
|
if (!lpDisplayName && *lpcchBuffer && !ret && (GLE == ERROR_INSUFFICIENT_BUFFER))
|
||||||
{
|
{
|
||||||
/* Request for buffersize.
|
/* Request for buffersize.
|
||||||
*
|
*
|
||||||
|
@ -2291,7 +2291,7 @@ BOOL WINAPI GetServiceDisplayNameA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
|
||||||
*/
|
*/
|
||||||
size = sizeW * 2;
|
size = sizeW * 2;
|
||||||
}
|
}
|
||||||
else if (lpDisplayName && lpcchBuffer && !ret)
|
else if (lpDisplayName && *lpcchBuffer && !ret)
|
||||||
{
|
{
|
||||||
/* Request for displayname.
|
/* Request for displayname.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue