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
&usedBufLen
);
- // charsConverted is > 0 iff conversion succeeded
- if(charsConverted <= 0)
+ if(charsConverted < CFStringGetLength(theString) )
return wxCONV_FAILED;
return usedBufLen;