Fix wrong indentation in wxDDE code
No real changes, but this avoids warnings about possibly wrong code from the latest g++ versions. Also add braces around a multiline "if" statement body.
This commit is contained in:
@@ -884,18 +884,20 @@ _DDECallback(WORD wType,
|
|||||||
(wxIPCFormat)wFmt);
|
(wxIPCFormat)wFmt);
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
if (user_size == wxNO_LEN)
|
if (user_size == wxNO_LEN)
|
||||||
switch (wFmt)
|
|
||||||
{
|
{
|
||||||
case wxIPC_TEXT:
|
switch (wFmt)
|
||||||
case wxIPC_UTF8TEXT:
|
{
|
||||||
user_size = strlen((const char*)data) + 1; // includes final NUL
|
case wxIPC_TEXT:
|
||||||
break;
|
case wxIPC_UTF8TEXT:
|
||||||
case wxIPC_UNICODETEXT:
|
user_size = strlen((const char*)data) + 1; // includes final NUL
|
||||||
user_size = (wcslen((const wchar_t*)data) + 1) * sizeof(wchar_t); // includes final NUL
|
break;
|
||||||
break;
|
case wxIPC_UNICODETEXT:
|
||||||
default:
|
user_size = (wcslen((const wchar_t*)data) + 1) * sizeof(wchar_t); // includes final NUL
|
||||||
user_size = 0;
|
break;
|
||||||
|
default:
|
||||||
|
user_size = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HDDEDATA handle = DdeCreateDataHandle(DDEIdInst,
|
HDDEDATA handle = DdeCreateDataHandle(DDEIdInst,
|
||||||
|
Reference in New Issue
Block a user