X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8e24848f67a655c6845420caf00a29100e38d9f..61a028dc4af537da90fd52935a75afc9056ecd09:/src/msw/ole/dataobj.cpp diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index ded312e08d..408a2599b9 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -686,8 +686,8 @@ size_t wxDataObject::GetBufferOffset(const wxDataFormat& format ) const void* wxDataObject::GetSizeFromBuffer( const void* buffer, size_t* size, const wxDataFormat& format ) { - SIZE_T realsz = ::HeapSize(::GetProcessHeap(), 0, buffer); - if ( realsz == (SIZE_T)-1 ) + size_t realsz = ::HeapSize(::GetProcessHeap(), 0, buffer); + if ( realsz == (size_t)-1 ) { // note that HeapSize() does not set last error wxLogApiError(wxT("HeapSize"), 0);