diff --git a/include/winbase.h b/include/winbase.h index 0acd100864f..c992ed2a99d 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1225,13 +1225,14 @@ BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES, HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR); HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR); #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore) -HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); -BOOL WINAPI DebugActiveProcess(DWORD); -BOOL WINAPI DisableThreadLibraryCalls(HMODULE); -BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME); -BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD); -BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags); -BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags); +HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); +BOOL WINAPI DebugActiveProcess(DWORD); +void WINAPI DebugBreak(void); +BOOL WINAPI DisableThreadLibraryCalls(HMODULE); +BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME); +BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD); +BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags); +BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags); #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats) BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR, ENUMRESLANGPROCA,LONG); diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index b2eb1e21d4d..0dab5e63683 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -196,9 +196,7 @@ import ntdll.dll 178 stdcall CreateThread(ptr long ptr long long ptr) CreateThread 179 stdcall CreateToolhelp32Snapshot(long long) CreateToolhelp32Snapshot 180 stdcall DebugActiveProcess(long) DebugActiveProcess -# FIXME -#181 register DebugBreak() DebugBreak -181 stub DebugBreak +181 register DebugBreak() DebugBreak 182 stdcall DefineDosDeviceA(long str str) DefineDosDeviceA 183 stub DefineDosDeviceW 184 stdcall DeleteAtom(long) DeleteAtom diff --git a/scheduler/syslevel.c b/scheduler/syslevel.c index da715fe32bd..511dea8cf61 100644 --- a/scheduler/syslevel.c +++ b/scheduler/syslevel.c @@ -6,7 +6,6 @@ #include #include -#include #include "syslevel.h" #include "heap.h" #include "stackframe.h" @@ -241,8 +240,7 @@ VOID SYSLEVEL_CheckNotLevel( INT level ) { ERR("(%d): Holding lock of level %d!\n", level, i ); - - kill( getpid(), SIGHUP ); + DebugBreak(); break; } } diff --git a/windows/x11drv/main.c b/windows/x11drv/main.c index 0cb25531150..4ccff2c7cbf 100644 --- a/windows/x11drv/main.c +++ b/windows/x11drv/main.c @@ -299,7 +299,7 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[]) */ static int X11DRV_USER_ErrorHandler(Display *display, XErrorEvent *error_evt) { - kill( getpid(), SIGHUP ); /* force an entry in the debugger */ + DebugBreak(); /* force an entry in the debugger */ return 0; }