riched20: Fix cast for dwCookie.
This commit is contained in:
parent
99868d7c16
commit
ac85a76b2d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue