advapi: Fix return value for QueryServiceConfig2W.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
07f7022fcc
commit
9c95bfcc30
|
@ -1607,7 +1607,11 @@ BOOL WINAPI QueryServiceConfig2W(SC_HANDLE hService, DWORD dwLevel, LPBYTE buffe
|
|||
switch (dwLevel)
|
||||
{
|
||||
case SERVICE_CONFIG_DESCRIPTION:
|
||||
if (!(bufptr = heap_alloc( size ))) return ERROR_OUTOFMEMORY;
|
||||
if (!(bufptr = heap_alloc( size )))
|
||||
{
|
||||
SetLastError( ERROR_NOT_ENOUGH_MEMORY );
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
case SERVICE_CONFIG_PRESHUTDOWN_INFO:
|
||||
|
|
Loading…
Reference in New Issue