GnuWin32 corrections (::ZeroMemory doesn't exist)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user