mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +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))
|
if (!NT_SUCCESS(Result))
|
||||||
{
|
{
|
||||||
/* Set the last error and fail */
|
/* Set the last error and fail */
|
||||||
NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError(Result);
|
|
||||||
goto ExitCall;
|
goto ExitCall;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
/* INCLUDES ****************************************************************/
|
/* INCLUDES ****************************************************************/
|
||||||
|
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
|
#include <winerror.h>
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
@ -63,6 +64,7 @@ PsConvertToGuiThread(VOID)
|
||||||
if (!NewStack)
|
if (!NewStack)
|
||||||
{
|
{
|
||||||
/* Panic in user-mode */
|
/* Panic in user-mode */
|
||||||
|
NtCurrentTeb()->LastErrorValue = ERROR_NOT_ENOUGH_MEMORY;
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue