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
This commit is contained in:
Michael Wetherell 2006-02-12 11:00:45 +00:00
parent 2baea9e267
commit 51d0522672

View File

@ -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);