Reactos
at master 30 lines 668 B view raw
1/* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS system libraries 4 * FILE: dll/win32/kernel32/client/utils_shared.c 5 * PURPOSE: Utility functions shared with kernel32_vista 6 * PROGRAMMER: Thomas Faber 7*/ 8 9/* INCLUDES *******************************************************************/ 10 11#include <k32.h> 12#include <strsafe.h> 13 14#define NDEBUG 15#include <debug.h> 16 17/* 18* @implemented 19*/ 20DWORD 21WINAPI 22BaseSetLastNTError(IN NTSTATUS Status) 23{ 24 DWORD dwErrCode; 25 26 /* Convert from NT to Win32, then set */ 27 dwErrCode = RtlNtStatusToDosError(Status); 28 SetLastError(dwErrCode); 29 return dwErrCode; 30}