Eliminate dependency on SetLastError().
This commit is contained in:
parent
61ef356347
commit
91f234f267
|
@ -135,13 +135,7 @@ static BOOL HEAP_IsRealArena( HEAP *heapPtr, DWORD flags, LPCVOID block, BOOL qu
|
||||||
/* SetLastError for ntdll */
|
/* SetLastError for ntdll */
|
||||||
inline static void set_status( NTSTATUS status )
|
inline static void set_status( NTSTATUS status )
|
||||||
{
|
{
|
||||||
#if defined(__i386__) && defined(__GNUC__)
|
|
||||||
/* in this case SetLastError is an inline function so we can use it */
|
|
||||||
SetLastError( RtlNtStatusToDosError( status ) );
|
|
||||||
#else
|
|
||||||
/* cannot use SetLastError, do it manually */
|
|
||||||
NtCurrentTeb()->last_error = RtlNtStatusToDosError( status );
|
NtCurrentTeb()->last_error = RtlNtStatusToDosError( status );
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set the process main heap */
|
/* set the process main heap */
|
||||||
|
|
Loading…
Reference in New Issue