Also partly revert r66781.
By Stefan G.
svn path=/trunk/; revision=66784
if (!NT_SUCCESS(Result))
{
/* Set the last error and fail */
- NtCurrentTeb()->LastErrorValue = RtlNtStatusToDosError(Result);
goto ExitCall;
}
/* INCLUDES ****************************************************************/
#include <ntoskrnl.h>
+#include <winerror.h>
#define NDEBUG
#include <debug.h>
if (!NewStack)
{
/* Panic in user-mode */
+ NtCurrentTeb()->LastErrorValue = ERROR_NOT_ENOUGH_MEMORY;
return STATUS_NO_MEMORY;
}