From 51d0522672056dd75a5bb18ede69baf2d1a46bc4 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 12 Feb 2006 11:00:45 +0000 Subject: [PATCH 1/1] Some compilers don't define SIZE_T (e.g. dmc) so use size_t instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/ole/dataobj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.45.2