mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:33:32 +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)
|
||||
HeapFree(GetProcessHeap(), 0, lpPasswordW);
|
||||
|
||||
SetLastError(dwError);
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
{
|
||||
TRACE("RCreateServiceA() failed (Error %lu)\n", dwError);
|
||||
SetLastError(dwError);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -750,10 +750,10 @@ CreateServiceW(SC_HANDLE hSCManager,
|
|||
}
|
||||
RpcEndExcept;
|
||||
|
||||
SetLastError(dwError);
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
{
|
||||
TRACE("RCreateServiceW() failed (Error %lu)\n", dwError);
|
||||
SetLastError(dwError);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue