riched20: Don't use EM_STREAMIN for paste.
This commit is contained in:
parent
78ecf18156
commit
2d0ad0944c
|
@ -1639,8 +1639,8 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||||
gds.nLength = 0;
|
gds.nLength = 0;
|
||||||
es.dwCookie = (DWORD)&gds;
|
es.dwCookie = (DWORD)&gds;
|
||||||
es.pfnCallback = dwFormat == SF_RTF ? ME_ReadFromHGLOBALRTF : ME_ReadFromHGLOBALUnicode;
|
es.pfnCallback = dwFormat == SF_RTF ? ME_ReadFromHGLOBALRTF : ME_ReadFromHGLOBALUnicode;
|
||||||
SendMessageW(hWnd, EM_STREAMIN, dwFormat|SFF_SELECTION, (LPARAM)&es);
|
ME_StreamIn(editor, dwFormat|SFF_SELECTION, &es);
|
||||||
|
|
||||||
CloseClipboard();
|
CloseClipboard();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue