From 91f234f2675725d6d63db08a4866087b760fc1e8 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 8 Oct 2003 19:10:33 +0000 Subject: [PATCH] Eliminate dependency on SetLastError(). --- dlls/ntdll/heap.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 58e888a0d4a..b45ace8884a 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -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 */