mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NTOSKRNL]
Also partly revert r66781. By Stefan G. svn path=/trunk/; revision=66784
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user