Commit 91f234f2 authored by Pavel Roskin's avatar Pavel Roskin Committed by Alexandre Julliard

Eliminate dependency on SetLastError().

parent 61ef3563
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment