]> git.saurik.com Git - wxWidgets.git/commitdiff
GnuWin32 corrections (::ZeroMemory doesn't exist)
authorJulian Smart <julian@anthemion.co.uk>
Mon, 15 Feb 1999 13:05:58 +0000 (13:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 15 Feb 1999 13:05:58 +0000 (13:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp
src/msw/tooltip.cpp
src/msw/utilsexc.cpp

index f19fcfb670dc8674d800e8d25c7908ba497966db..b55dddf5d23cee175ed5495b155cb6733a5b938c 100644 (file)
@@ -465,7 +465,7 @@ wxTextCtrl* wxListCtrl::GetEditControl(void) const
 bool wxListCtrl::GetItem(wxListItem& info) const
 {
   LV_ITEM lvItem;
-#ifdef __MINGW32__
+#ifdef __GNUWIN32__
   memset(&lvItem, 0, sizeof(lvItem));
 #else
   ZeroMemory(&lvItem, sizeof(lvItem)); // must set all fields to 0
index 7829ec50e957bc18b4a1489b41b525fea6c120b3..199c42a0a1a292fab7c3bab9324a6e2386886fde 100644 (file)
@@ -47,7 +47,11 @@ public:
     wxToolInfo(wxWindow *win)
     {
         // initialize all members
+#ifdef __GNUWIN32__
+        memset(this, 0, sizeof(TOOLINFO));
+#else
         ::ZeroMemory(this, sizeof(TOOLINFO));
+#endif
 
         cbSize = sizeof(TOOLINFO);
         uFlags = TTF_IDISHWND;
index ade6c3077ab33b77df38fdb0e4a44f0241492cf0..730828e34e51742c902fcc2be44ca806bf6e7cad 100644 (file)
@@ -211,7 +211,12 @@ long wxExecute(const wxString& command, bool sync, wxProcess *handler)
 #else // 1
     // create the process
     STARTUPINFO si;
+#ifdef __GNUWIN32__
+    memset(&si, 0, sizeof(si));
+#else
     ::ZeroMemory(&si, sizeof(si));
+#endif
+
     si.cb = sizeof(si);
 
     PROCESS_INFORMATION pi;