mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 14:51:27 +00:00
Renamed NTDLL.RtlNtStatusToDosError() RtlNtStatusToDosErrorNoTeb().
Added NTDLL.RtlNtStatusToDosError() that calls RtlNtStatusToDosErrorNoTeb(). Still not understood why RtlNtStatusToDosError() stores in the TEB the given NtStatus. svn path=/trunk/; revision=1167
This commit is contained in:
parent
3918e5583d
commit
f53d713f9a
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: error.c,v 1.4 2000/04/14 01:43:38 ekohl Exp $
|
/* $Id: error.c,v 1.5 2000/05/30 22:25:10 ea Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -37,7 +37,7 @@ RtlAssert (
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DWORD STDCALL RtlNtStatusToDosError (NTSTATUS Status)
|
DWORD STDCALL RtlNtStatusToDosErrorNoTeb (NTSTATUS Status)
|
||||||
{
|
{
|
||||||
switch (Status)
|
switch (Status)
|
||||||
{
|
{
|
||||||
|
@ -628,11 +628,21 @@ STATUS_CONNECTION_IN_USE ERROR_DEVICE_IN_USE
|
||||||
STATUS_VERIFY_REQUIRED ERROR_MEDIA_CHANGED
|
STATUS_VERIFY_REQUIRED ERROR_MEDIA_CHANGED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
}
|
||||||
DPRINT("Unknown status code: %u\n", Status);
|
DbgPrint("RTL: RtlNtStatusToDosErrorNoTeb(0x%lx): no valid W32 error mapping\n", Status);
|
||||||
return ERROR_GEN_FAILURE;
|
return ERROR_MR_MID_NOT_FOUND;
|
||||||
}
|
}
|
||||||
return(0);
|
|
||||||
|
|
||||||
|
DWORD STDCALL RtlNtStatusToDosError (NTSTATUS Status)
|
||||||
|
{
|
||||||
|
PNT_TEB Teb = NtCurrentTeb ();
|
||||||
|
|
||||||
|
if (NULL != Teb)
|
||||||
|
{
|
||||||
|
/* FIXME: save Status in the TEB */
|
||||||
|
}
|
||||||
|
return RtlNtStatusToDosErrorNoTeb (Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue