]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dobjcmn.cpp
Add missing WXK constants for the control keys
[wxWidgets.git] / src / common / dobjcmn.cpp
index 0eeea52fb20d2cb31d39c5d4f6360cd452d784f4..79250414207599d5a1f6b0cb42ca8e7ece49712f 100644 (file)
@@ -425,8 +425,8 @@ bool wxTextDataObject::GetDataHere(void *buf) const
     // NOTE: use wxTmemcpy() instead of wxStrncpy() to allow
     //       retrieval of strings with embedded NULLs
     wxTmemcpy(static_cast<wxChar*>(buf),
-              textNative.c_str(),
-              (textNative.length() + 1)*sizeof(wxChar));
+              textNative.t_str(),
+              textNative.length() + 1);
 
     return true;
 }