Module: wine Branch: master Commit: ac85a76b2d3d9a403f1038f5baca4eb315ad4087 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ac85a76b2d3d9a403f1038f5ba...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Mon Dec 22 00:09:17 2008 +0100
riched20: Fix cast for dwCookie.
---
dlls/riched20/editor.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 696061a..c93a1e4 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -1616,7 +1616,7 @@ ME_StreamInRTFString(ME_TextEditor *editor, BOOL selection, char *string) data.string = string; data.length = strlen(string); data.pos = 0; - es.dwCookie = (DWORD)&data; + es.dwCookie = (DWORD_PTR)&data; es.pfnCallback = ME_ReadFromRTFString; ME_StreamIn(editor, SF_RTF | (selection ? SFF_SELECTION : 0), &es, FALSE); } @@ -2065,7 +2065,7 @@ static BOOL ME_Paste(ME_TextEditor *editor) return FALSE; gds.hData = GetClipboardData(cf); gds.nLength = 0; - es.dwCookie = (DWORD)&gds; + es.dwCookie = (DWORD_PTR)&gds; es.pfnCallback = dwFormat == SF_RTF ? ME_ReadFromHGLOBALRTF : ME_ReadFromHGLOBALUnicode; ME_StreamIn(editor, dwFormat|SFF_SELECTION, &es, FALSE);