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:
@@ -570,9 +570,13 @@ size_t wxMBConvUTF16straight::WC2MB(char *buf, const wchar_t *psz, size_t n) con
|
|||||||
|
|
||||||
if (buf)
|
if (buf)
|
||||||
{
|
{
|
||||||
*((wxUint16*)buf)++ = cc[0];
|
*(wxUint16*)buf = cc[0];
|
||||||
|
buf += sizeof(wxUint16);
|
||||||
if (pa > 1)
|
if (pa > 1)
|
||||||
*((wxUint16*)buf)++ = cc[1];
|
{
|
||||||
|
*(wxUint16*)buf = cc[1];
|
||||||
|
buf += sizeof(wxUint16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
len += pa*sizeof(wxUint16);
|
len += pa*sizeof(wxUint16);
|
||||||
|
Reference in New Issue
Block a user