[NTOSKRNL]

- Do not return an NTSTATUS from KeSynchronizeExecution, which returns BOOLEAN
[KERNEL32]
- Do not return an NTSTATUS from BasepGetModuleHandleExW
Found by MSVC.

svn path=/trunk/; revision=53413
This commit is contained in:
Thomas Faber 2011-08-24 12:31:08 +00:00
parent ca5f3d0740
commit 59cbfbc34a
2 changed files with 2 additions and 2 deletions

View file

@ -818,7 +818,7 @@ BasepGetModuleHandleExW(BOOLEAN NoLock, DWORD dwPublicFlags, LPCWSTR lpwModuleNa
/* Fail */ /* Fail */
BaseSetLastNTError(Status); BaseSetLastNTError(Status);
if (phModule) *phModule = 0; if (phModule) *phModule = 0;
return Status; return NT_SUCCESS(Status);
} }
} }

View file

@ -591,7 +591,7 @@ KeSynchronizeExecution(IN OUT PKINTERRUPT Interrupt,
KfLowerIrql(OldIrql); KfLowerIrql(OldIrql);
/* Return status */ /* Return status */
return Status; return NT_SUCCESS(Status);
} }
/* EOF */ /* EOF */