X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9941a3eb538360b008a43babc2a98e4bb62ecb29..3bf93e1e9ac6b61e5220967d2ada2d4faec4dd9c:/src/msw/dde.cpp?ds=inline diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index 3b32cf06c4..475b580110 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -595,7 +595,7 @@ wxChar *wxDDEConnection::Request(const wxString& item, int *size, wxIPCFormat fo } DWORD len = DdeGetData(returned_data, NULL, 0, 0); - len = ceil( double(len)/sizeof(wxChar) ); + len = (DWORD)ceil( double(len)/sizeof(wxChar) ); wxChar *data = GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL, @@ -777,7 +777,7 @@ _DDECallback(WORD wType, if (connection) { DWORD len = DdeGetData(hData, NULL, 0, 0); - len = ceil( double(len)/sizeof(wxChar) ); + len = (DWORD)ceil( double(len)/sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL, @@ -839,7 +839,7 @@ _DDECallback(WORD wType, wxString item_name = DDEStringFromAtom(hsz2); DWORD len = DdeGetData(hData, NULL, 0, 0); - len = ceil( double(len) / sizeof(wxChar) ); + len = (DWORD)ceil( double(len) / sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL, @@ -927,7 +927,7 @@ _DDECallback(WORD wType, wxString item_name = DDEStringFromAtom(hsz2); DWORD len = DdeGetData(hData, NULL, 0, 0); - len = ceil( double(len) / sizeof(wxChar) ); + len = (DWORD)ceil( double(len) / sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL,