]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/nativdlg.cpp
Don't do the wx cleanup if wxPython didn't do the initialization.
[wxWidgets.git] / src / os2 / nativdlg.cpp
index 4125ea3fefb94ba258d30162a74be59e6758e5d4..040181cdbf7da9ae16b037786492be176af2fc74 100644 (file)
@@ -62,7 +62,7 @@ bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
         wxTopLevelWindows.Append(this);
 
     // Enumerate all children
         wxTopLevelWindows.Append(this);
 
     // Enumerate all children
-    HWND hWndNext;
+    HWND hWndNext = NULLHANDLE;
 // TODO    hWndNext = ::GetWindow((HWND) m_hWnd, GW_CHILD);
 
     wxWindow* child = NULL;
 // TODO    hWndNext = ::GetWindow((HWND) m_hWnd, GW_CHILD);
 
     wxWindow* child = NULL;