windows-hooks-20050418
[openafs.git] / src / WINNT / afsd / afsd.c
index d5d31d1..2f10e2e 100644 (file)
@@ -21,6 +21,9 @@
 #include <stdlib.h>
 #include <winsock2.h>
 
+#ifdef _DEBUG
+#include <crtdbg.h>
+#endif
 
 HANDLE main_inst;
 HWND main_wnd;
@@ -33,6 +36,8 @@ extern int traceOnPanic;
 extern void afsd_DbgBreakAllocInit();
 extern void afsd_DbgBreakAdd(DWORD requestNumber);
 
+HANDLE WaitToTerminate = NULL;
+
 /*
  * Notifier function for use by osi_panic
  */
@@ -50,6 +55,7 @@ void afsd_notifier(char *msgp, char *filep, long line)
        MessageBox(NULL, tbuffer, msgp, MB_OK|MB_ICONSTOP|MB_SETFOREGROUND);
 
        afsd_ForceTrace(TRUE);
+        buf_ForceTrace(TRUE);
 
        if (traceOnPanic) {
                _asm int 3h;