SetLastErrorByStatus() now a macro, for binary compatibility with Windows

svn path=/trunk/; revision=4583
This commit is contained in:
KJK::Hyperion 2003-04-26 00:25:01 +00:00
parent 2e6c5e5a92
commit b9269e59c8
3 changed files with 6 additions and 9 deletions

View file

@ -1,12 +1,11 @@
#ifndef _INCLUDE_KERNEL32_H
#define _INCLUDE_KERNEL32_H
/* $Id: error.h,v 1.3 2002/09/08 10:22:30 chorns Exp $ */
/* $Id: error.h,v 1.4 2003/04/26 00:25:01 hyperion Exp $ */
#include <windows.h>
#define NTOS_MODE_USER
#include <ntos.h>
DWORD
STDCALL
SetLastErrorByStatus (
NTSTATUS Status
);
#define SetLastErrorByStatus(__S__) \
((void)SetLastError(RtlNtStatusToDosError(__S__)))
#endif /* _INCLUDE_KERNEL32_H */

View file

@ -579,7 +579,6 @@ SetHandleCount@4
SetHandleInformation@12
SetLastConsoleEventActive@0
SetLastError@4
SetLastErrorByStatus@4
SetLocalTime@4
SetLocaleInfoA@12
SetLocaleInfoW@12

View file

@ -1,4 +1,4 @@
; $Id: kernel32.edf,v 1.22 2003/04/02 00:06:00 hyperion Exp $
; $Id: kernel32.edf,v 1.23 2003/04/26 00:25:01 hyperion Exp $
;
; kernel32.edf
;
@ -584,7 +584,6 @@ SetHandleCount=SetHandleCount@4
SetHandleInformation=SetHandleInformation@12
SetLastConsoleEventActive=SetLastConsoleEventActive@0
SetLastError=SetLastError@4
SetLastErrorByStatus=SetLastErrorByStatus@4
SetLocalTime=SetLocalTime@4
SetLocaleInfoA=SetLocaleInfoA@12
SetLocaleInfoW=SetLocaleInfoW@12