]> git.saurik.com Git - wxWidgets.git/commitdiff
Some compilers don't define SIZE_T (e.g. dmc) so use size_t instead.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 12 Feb 2006 11:00:45 +0000 (11:00 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 12 Feb 2006 11:00:45 +0000 (11:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/dataobj.cpp

index ded312e08d9547c79bdf2a033abf4e60d20aa6d4..408a2599b929f6ef5366715fefd2c03cbf5fc6bf 100644 (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);