update for HEAD-2003050101
[reactos.git] / include / kernel32 / error.h
index 384a280..7ad2d3c 100644 (file)
@@ -4,9 +4,8 @@
 #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 */