X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7bd3a7d8f16e7056dc41dbf5e3350cd249adee3..748fbf95a859df3b1b9f8b95ee8cd0cc4d205a85:/src/msw/region.cpp diff --git a/src/msw/region.cpp b/src/msw/region.cpp index cb214071d0..e051bb1277 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -43,7 +43,7 @@ public: wxRegionRefData(const wxRegionRefData& data) { -#if defined(__WIN32__) +#if defined(__WIN32__) && !defined(__WXMICROWIN__) DWORD noBytes = ::GetRegionData(data.m_region, 0, NULL); RGNDATA *rgnData = (RGNDATA*) new char[noBytes]; ::GetRegionData(data.m_region, noBytes, rgnData);