[PATCH] riched20: Fix cast for dwCookie

Maarten Lankhorst m.b.lankhorst at gmail.com
Sun Dec 21 17:09:17 CST 2008


---
 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);
 
-- 
1.5.6.5


--------------090907080405090306080403--



More information about the wine-patches mailing list