mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 22:49:12 +00:00
[ADVAPI32]
ScmRpcStatusToWinError: Convert STATUS_ACCESS_VIOLATION to ERROR_INVALID_HANDLE. UnlockServiceDatabase returns ERROR_INVALID_SERVICE_LOCK instead of ERROR_INVALID_HANDLE. svn path=/trunk/; revision=75053
This commit is contained in:
parent
a26e5a47fc
commit
57206b450b
1 changed files with 4 additions and 0 deletions
|
@ -133,6 +133,7 @@ ScmRpcStatusToWinError(RPC_STATUS Status)
|
|||
{
|
||||
switch (Status)
|
||||
{
|
||||
case STATUS_ACCESS_VIOLATION:
|
||||
case RPC_S_INVALID_BINDING:
|
||||
case RPC_X_SS_IN_NULL_CONTEXT:
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
@ -2798,6 +2799,9 @@ UnlockServiceDatabase(SC_LOCK ScLock)
|
|||
}
|
||||
RpcEndExcept;
|
||||
|
||||
if (dwError == ERROR_INVALID_HANDLE)
|
||||
dwError = ERROR_INVALID_SERVICE_LOCK;
|
||||
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
{
|
||||
TRACE("RUnlockServiceDatabase() failed (Error %lu)\n", dwError);
|
||||
|
|
Loading…
Reference in a new issue