Author: pschweitzer
Date: Wed Mar 18 15:26:46 2015
New Revision: 66784
URL:
http://svn.reactos.org/svn/reactos?rev=66784&view=rev
Log:
[NTOSKRNL]
Also partly revert r66781.
By Stefan G.
Modified:
trunk/reactos/ntoskrnl/ke/i386/traphdlr.c
trunk/reactos/ntoskrnl/ps/win32.c
Modified: trunk/reactos/ntoskrnl/ke/i386/traphdlr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/traphdlr.…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/traphdlr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/traphdlr.c [iso-8859-1] Wed Mar 18 15:26:46 2015
@@ -1673,7 +1673,6 @@
if (!NT_SUCCESS(Result))
{
/* Set the last error and fail */
- NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError(Result);
goto ExitCall;
}
Modified: trunk/reactos/ntoskrnl/ps/win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/win32.c?rev=66…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/win32.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/win32.c [iso-8859-1] Wed Mar 18 15:26:46 2015
@@ -9,6 +9,7 @@
/* INCLUDES ****************************************************************/
#include <ntoskrnl.h>
+#include <winerror.h>
#define NDEBUG
#include <debug.h>
@@ -63,6 +64,7 @@
if (!NewStack)
{
/* Panic in user-mode */
+ NtCurrentTeb()->LastErrorValue = ERROR_NOT_ENOUGH_MEMORY;
return STATUS_NO_MEMORY;
}