mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:12:57 +00:00
[RTL]
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:
parent
7757ad1b00
commit
da611ab479
1 changed files with 5 additions and 2 deletions
|
@ -160,7 +160,10 @@ void WINAPI RtlSetLastWin32Error( DWORD err )
|
||||||
*/
|
*/
|
||||||
void WINAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus( NTSTATUS status )
|
void WINAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus( NTSTATUS status )
|
||||||
{
|
{
|
||||||
NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError( status );
|
PTEB Teb = NtCurrentTeb ();
|
||||||
|
|
||||||
|
Teb->LastErrorValue = RtlNtStatusToDosError( status );
|
||||||
|
Teb->LastStatusValue = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1550,4 +1553,4 @@ static const struct error_table error_table[] =
|
||||||
{ 0xc0130001, 0xc0130017, table_c0130001 },
|
{ 0xc0130001, 0xc0130017, table_c0130001 },
|
||||||
{ 0xc0150001, 0xc0150028, table_c0150001 },
|
{ 0xc0150001, 0xc0150028, table_c0150001 },
|
||||||
{ 0, 0, NULL } /* last entry */
|
{ 0, 0, NULL } /* last entry */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue