Author: pschweitzer
Date: Wed Mar 18 14:34:19 2015
New Revision: 66782
URL:
http://svn.reactos.org/svn/reactos?rev=66782&view=rev
Log:
[RTL]
Also set status in RtlSetLastWin32ErrorAndNtStatusFromNtStatus() (to match both name &
documentation ;-)).
Patch by Stefan Ginsberg.
Should be sent upstream?
Modified:
trunk/reactos/lib/rtl/error.c
Modified: trunk/reactos/lib/rtl/error.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/error.c?rev=66782&…
==============================================================================
--- trunk/reactos/lib/rtl/error.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/error.c [iso-8859-1] Wed Mar 18 14:34:19 2015
@@ -160,7 +160,10 @@
*/
void WINAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus( NTSTATUS status )
{
- NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError( status );
+ PTEB Teb = NtCurrentTeb ();
+
+ Teb->LastErrorValue = RtlNtStatusToDosError( status );
+ Teb->LastStatusValue = status;
}
/*
@@ -1550,4 +1553,4 @@
{ 0xc0130001, 0xc0130017, table_c0130001 },
{ 0xc0150001, 0xc0150028, table_c0150001 },
{ 0, 0, NULL } /* last entry */
-};
+};