Eliminate dependency on SetLastError().

This commit is contained in:
Pavel Roskin 2003-10-08 19:10:33 +00:00 committed by Alexandre Julliard
parent 61ef356347
commit 91f234f267
1 changed files with 0 additions and 6 deletions

View File

@ -135,13 +135,7 @@ static BOOL HEAP_IsRealArena( HEAP *heapPtr, DWORD flags, LPCVOID block, BOOL qu
/* SetLastError for ntdll */
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 );
#endif
}
/* set the process main heap */