compilation fix (part of patch 810484)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-09-22 12:23:39 +00:00
parent 375fc5a970
commit 69b80d287d

View File

@@ -570,9 +570,13 @@ size_t wxMBConvUTF16straight::WC2MB(char *buf, const wchar_t *psz, size_t n) con
if (buf)
{
*((wxUint16*)buf)++ = cc[0];
*(wxUint16*)buf = cc[0];
buf += sizeof(wxUint16);
if (pa > 1)
*((wxUint16*)buf)++ = cc[1];
{
*(wxUint16*)buf = cc[1];
buf += sizeof(wxUint16);
}
}
len += pa*sizeof(wxUint16);