riched20: Fix cast for dwCookie.
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Sun, 21 Dec 2008 23:09:17 +0000 (00:09 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 23 Dec 2008 17:51:05 +0000 (18:51 +0100)
dlls/riched20/editor.c

index 696061a3bb81bb450196990cf61c994aaf7716eb..c93a1e484f5dfe822ff259090f09ce53e1163f5b 100644 (file)
@@ -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);