X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9a5faed6a26a148eea3319b8bde8cfb0b64478b..4800ca79accc0b96470a327871b2422cbb7ad615:/src/msw/ole/dataobj.cpp diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index 3003abdd38..ff9169dbe5 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -693,7 +693,7 @@ const void *wxDataObject::GetSizeFromBuffer(const void *buffer, // hack: the third parameter is declared non-const in Wine's headers so // cast away the const const size_t realsz = ::HeapSize(::GetProcessHeap(), 0, - wx_const_cast(void*, buffer)); + const_cast(buffer)); if ( realsz == (size_t)-1 ) { // note that HeapSize() does not set last error