*/
void WINAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus( NTSTATUS status )
{
- NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError( status );
+ PTEB Teb = NtCurrentTeb ();
+
+ Teb->LastErrorValue = RtlNtStatusToDosError( status );
+ Teb->LastStatusValue = status;
}
/*
{ 0xc0130001, 0xc0130017, table_c0130001 },
{ 0xc0150001, 0xc0150028, table_c0150001 },
{ 0, 0, NULL } /* last entry */
-};
\ No newline at end of file
+};