Ensure our network layer is properly cleaned up before PuTTY exits.
[u/mdw/putty] / puttygen.c
index 330176c..6116e0f 100644 (file)
@@ -1142,6 +1142,8 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
     return 0;
 }
 
+void cleanup_exit(int code) { exit(code); }
+
 int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
 {
     InitCommonControls();