Make `Copy all to Clipboard' copy all non-empty lines from the
[u/mdw/putty] / windlg.c
index 7f6d88c..9c24449 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -1,6 +1,3 @@
-#include <windows.h>
-#include <commctrl.h>
-#include <commdlg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <limits.h>
@@ -8,13 +5,16 @@
 #include <ctype.h>
 #include <time.h>
 
-#include "ssh.h"
 #include "putty.h"
-#include "winstuff.h"
+#include "ssh.h"
 #include "win_res.h"
 #include "storage.h"
 #include "dialog.h"
 
+#include <commctrl.h>
+#include <commdlg.h>
+#include <shellapi.h>
+
 #ifdef MSVC4
 #define TVINSERTSTRUCT  TV_INSERTSTRUCT
 #define TVITEM          TV_ITEM
@@ -649,7 +649,6 @@ int do_reconfig(HWND hwnd)
     ctrl_free_box(ctrlbox);
     winctrl_cleanup(&ctrls_base);
     winctrl_cleanup(&ctrls_panel);
-    sfree(dp.errtitle);
     dp_cleanup(&dp);
 
     if (!ret)