]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utilsexc.cpp
Avoid core dumps when SetImageList is used.
[wxWidgets.git] / src / msw / utilsexc.cpp
index b2fbf1d0606f0f6ef07e0780fab207fbe622a2ce..671d9e9083aaf7141449e3b810ef87cf76412353 100644 (file)
@@ -83,7 +83,7 @@
 #endif // wxUSE_IPC
 
 // implemented in utils.cpp
-extern "C" HWND
+extern "C" WXDLLIMPEXP_BASE HWND
 wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
 
 // ----------------------------------------------------------------------------
@@ -113,12 +113,10 @@ struct wxExecuteData
 public:
     ~wxExecuteData()
     {
-#ifndef __WIN16__
         if ( !::CloseHandle(hProcess) )
         {
             wxLogLastError(wxT("CloseHandle(hProcess)"));
         }
-#endif
     }
 
     HWND       hWnd;          // window to send wxWM_PROC_TERMINATED to
@@ -473,7 +471,7 @@ static bool wxExecuteDDE(const wxString& ddeServer,
                          const wxString& ddeTopic,
                          const wxString& ddeCommand)
 {
-    bool ok = FALSE;
+    bool ok wxDUMMY_INITIALIZE(false);
 
     wxDDEClient client;
     wxConnectionBase *conn = client.MakeConnection(wxEmptyString,