mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +00:00
[ADVAPI32]
CreateServiceA/W: Call SetLastError() in case of success too. svn path=/trunk/; revision=75052
This commit is contained in:
parent
830b3fc070
commit
a26e5a47fc
1 changed files with 2 additions and 2 deletions
|
@ -654,10 +654,10 @@ CreateServiceA(SC_HANDLE hSCManager,
|
||||||
if (lpPasswordW != NULL)
|
if (lpPasswordW != NULL)
|
||||||
HeapFree(GetProcessHeap(), 0, lpPasswordW);
|
HeapFree(GetProcessHeap(), 0, lpPasswordW);
|
||||||
|
|
||||||
|
SetLastError(dwError);
|
||||||
if (dwError != ERROR_SUCCESS)
|
if (dwError != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
TRACE("RCreateServiceA() failed (Error %lu)\n", dwError);
|
TRACE("RCreateServiceA() failed (Error %lu)\n", dwError);
|
||||||
SetLastError(dwError);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -750,10 +750,10 @@ CreateServiceW(SC_HANDLE hSCManager,
|
||||||
}
|
}
|
||||||
RpcEndExcept;
|
RpcEndExcept;
|
||||||
|
|
||||||
|
SetLastError(dwError);
|
||||||
if (dwError != ERROR_SUCCESS)
|
if (dwError != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
TRACE("RCreateServiceW() failed (Error %lu)\n", dwError);
|
TRACE("RCreateServiceW() failed (Error %lu)\n", dwError);
|
||||||
SetLastError(dwError);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue