]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/dataobj.cpp
Sizing fixes according to patch #1523304.
[wxWidgets.git] / 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);