2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: dll/win32/kernel32/misc/error.c
5 * PURPOSE: Error functions
6 * PROGRAMMER: Pierre Schweitzer (pierre.schweitzer@reactos.org)
15 DWORD g_dwLastErrorToBreakOn
;
17 /* FUNCTIONS ******************************************************************/
24 if (g_dwLastErrorToBreakOn
)
26 /* If we have error to break on and if current matches, break */
27 if (g_dwLastErrorToBreakOn
== dwErrCode
)
34 NtCurrentTeb()->LastErrorValue
= dwErrCode
;
42 SetLastError(RtlNtStatusToDosError(Status
));