Author: pschweitzer
Date: Wed Mar 18 14:23:38 2015
New Revision: 66781
URL:
http://svn.reactos.org/svn/reactos?rev=66781&view=rev
Log:
[NTOSKRNL]
- Don't include user-mode header in kernel
- Don't set Win32 error in PsConvertToGuiThread(), it will be done in
KiSystemServiceHandler()
- Fix setting Win32 error in KiSystemServiceHandler()
Patch by Stefan Ginsberg
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 14:23:38 2015
@@ -1673,7 +1673,7 @@
if (!NT_SUCCESS(Result))
{
/* Set the last error and fail */
- //SetLastWin32Error(RtlNtStatusToDosError(Result));
+ 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 14:23:38 2015
@@ -9,7 +9,6 @@
/* INCLUDES ****************************************************************/
#include <ntoskrnl.h>
-#include <winerror.h>
#define NDEBUG
#include <debug.h>
@@ -64,7 +63,6 @@
if (!NewStack)
{
/* Panic in user-mode */
- NtCurrentTeb()->LastErrorValue = ERROR_NOT_ENOUGH_MEMORY;
return STATUS_NO_MEMORY;
}