Also set status in RtlSetLastWin32ErrorAndNtStatusFromNtStatus() (to match both name & documentation ;-)).

Patch by Stefan Ginsberg.

Should be sent upstream?

svn path=/trunk/; revision=66782
This commit is contained in:
Pierre Schweitzer 2015-03-18 14:34:19 +00:00
parent 7757ad1b00
commit da611ab479

View file

@ -160,7 +160,10 @@ void WINAPI RtlSetLastWin32Error( DWORD err )
*/
void WINAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus( NTSTATUS status )
{
NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError( status );
PTEB Teb = NtCurrentTeb ();
Teb->LastErrorValue = RtlNtStatusToDosError( status );
Teb->LastStatusValue = status;
}
/*