]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / msw / textctrl.cpp
index ddc7f78b559d81ae2c3e470fd6520f97e0ebe302..930b37cd6d61982426c3acc92e7db14a4eeb95a3 100644 (file)
@@ -1023,7 +1023,7 @@ wxTextCtrl::StreamOut(wxFontEncoding encoding, bool selectionOnly) const
 
     EDITSTREAM eds;
     wxZeroMemory(eds);
-    eds.dwCookie = (DWORD)&data;
+    eds.dwCookie = (DWORD_PTR)&data;
     eds.pfnCallback = wxRichEditStreamOut;
 
     ::SendMessage