mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[NTOSKRNL]
Also partly revert r66781. By Stefan G. svn path=/trunk/; revision=66784
This commit is contained in:
parent
0b60c945c8
commit
88e3a5126f
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue