projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7757ad1
)
[RTL]
author
Pierre Schweitzer
<pierre@reactos.org>
Wed, 18 Mar 2015 14:34:19 +0000
(14:34 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Wed, 18 Mar 2015 14:34:19 +0000
(14:34 +0000)
Also set status in RtlSetLastWin32ErrorAndNtStatusFromNtStatus() (to match both name & documentation ;-)).
Patch by Stefan Ginsberg.
Should be sent upstream?
svn path=/trunk/; revision=66782
reactos/lib/rtl/error.c
patch
|
blob
|
history
diff --git
a/reactos/lib/rtl/error.c
b/reactos/lib/rtl/error.c
index
d2ba263
..
6f2728b
100644
(file)
--- a/
reactos/lib/rtl/error.c
+++ b/
reactos/lib/rtl/error.c
@@
-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;
}
/*
@@
-1550,4
+1553,4
@@
static const struct error_table error_table[] =
{ 0xc0130001, 0xc0130017, table_c0130001 },
{ 0xc0150001, 0xc0150028, table_c0150001 },
{ 0, 0, NULL } /* last entry */
-};
\ No newline at end of file
+};