fix warnings about conversion between DWORD and pointers in MSLU=1 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -912,7 +912,7 @@ void wxTextCtrl::DoSetValue(const wxString& value, int flags)
|
|||||||
// TODO: using memcpy() would improve performance a lot for big amounts of text
|
// TODO: using memcpy() would improve performance a lot for big amounts of text
|
||||||
|
|
||||||
DWORD CALLBACK
|
DWORD CALLBACK
|
||||||
wxRichEditStreamIn(DWORD dwCookie, BYTE *buf, LONG cb, LONG *pcb)
|
wxRichEditStreamIn(DWORD_PTR dwCookie, BYTE *buf, LONG cb, LONG *pcb)
|
||||||
{
|
{
|
||||||
*pcb = 0;
|
*pcb = 0;
|
||||||
|
|
||||||
@@ -999,7 +999,7 @@ wxTextCtrl::StreamIn(const wxString& value,
|
|||||||
// finally, stream it in the control
|
// finally, stream it in the control
|
||||||
EDITSTREAM eds;
|
EDITSTREAM eds;
|
||||||
wxZeroMemory(eds);
|
wxZeroMemory(eds);
|
||||||
eds.dwCookie = (DWORD)&wpc;
|
eds.dwCookie = (DWORD_PTR)&wpc;
|
||||||
// the cast below is needed for broken (very) old mingw32 headers
|
// the cast below is needed for broken (very) old mingw32 headers
|
||||||
eds.pfnCallback = (EDITSTREAMCALLBACK)wxRichEditStreamIn;
|
eds.pfnCallback = (EDITSTREAMCALLBACK)wxRichEditStreamIn;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user