merge r60175
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,8 +115,7 @@ WXDLLIMPEXP_BASE wxMBConv* new_wxMBConv_cf(wxFontEncoding encoding)
|
||||
dstSize * sizeof(wchar_t),
|
||||
&usedBufLen);
|
||||
|
||||
// charsConverted is > 0 iff conversion succeeded
|
||||
if(charsConverted <= 0)
|
||||
if(charsConverted < CFStringGetLength(theString))
|
||||
return wxCONV_FAILED;
|
||||
|
||||
/* usedBufLen is the number of bytes written, so we divide by
|
||||
@@ -217,8 +216,7 @@ WXDLLIMPEXP_BASE wxMBConv* new_wxMBConv_cf(wxFontEncoding encoding)
|
||||
&usedBufLen
|
||||
);
|
||||
|
||||
// charsConverted is > 0 iff conversion succeeded
|
||||
if(charsConverted <= 0)
|
||||
if(charsConverted < CFStringGetLength(theString) )
|
||||
return wxCONV_FAILED;
|
||||
|
||||
return usedBufLen;
|
||||
|
Reference in New Issue
Block a user