]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/dataobj.cpp
Changed system colours for better default display of wxGrid. Please revert
[wxWidgets.git] / src / msw / ole / dataobj.cpp
index 71572064ba64070f74df926b3e2433cdd49e9a91..f94872ee069ba7ea11bbe68fc5a1edd45cfcb3f1 100644 (file)
@@ -462,9 +462,9 @@ STDMETHODIMP wxIDataObject::SetData(FORMATETC *pformatetc,
                     case CF_OEMTEXT:
                         size = strlen((const char *)pBuf);
                         break;
-#ifndef __WATCOMC__
+#if !defined(__WATCOMC__) && ! (defined(__BORLANDC__) && (__BORLANDC__ < 0x500))
                     case CF_UNICODETEXT:
-                        size = wcslen((const wchar_t *)pBuf);
+                        size = ::wcslen((const wchar_t *)pBuf);
                         break;
 #endif
                     case CF_BITMAP: