[NTOSKRNL]

Also partly revert r66781.
By Stefan G.

svn path=/trunk/; revision=66784
This commit is contained in:
Pierre Schweitzer 2015-03-18 15:26:46 +00:00
parent 0b60c945c8
commit 88e3a5126f
2 changed files with 2 additions and 1 deletions

View file

@ -1673,7 +1673,6 @@ KiSystemServiceHandler(IN PKTRAP_FRAME TrapFrame,
if (!NT_SUCCESS(Result))
{
/* Set the last error and fail */
NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError(Result);
goto ExitCall;
}

View file

@ -9,6 +9,7 @@
/* INCLUDES ****************************************************************/
#include <ntoskrnl.h>
#include <winerror.h>
#define NDEBUG
#include <debug.h>
@ -63,6 +64,7 @@ PsConvertToGuiThread(VOID)
if (!NewStack)
{
/* Panic in user-mode */
NtCurrentTeb()->LastErrorValue = ERROR_NOT_ENOUGH_MEMORY;
return STATUS_NO_MEMORY;
}