ole32: Deal with WM_RENDERFORMAT if the clipboard is empty.
Signed-off-by: Zhipeng Zhao <zhaozhipeng@uniontech.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a18bc50f2f
commit
065b56e4e1
|
@ -2066,6 +2066,8 @@ static LRESULT CALLBACK clipbrd_wndproc(HWND hwnd, UINT message, WPARAM wparam,
|
||||||
ole_priv_data_entry *entry;
|
ole_priv_data_entry *entry;
|
||||||
|
|
||||||
TRACE("(): WM_RENDERFORMAT(cfFormat=%x)\n", cf);
|
TRACE("(): WM_RENDERFORMAT(cfFormat=%x)\n", cf);
|
||||||
|
|
||||||
|
if (!clipbrd || !clipbrd->cached_enum) break;
|
||||||
entry = find_format_in_list(clipbrd->cached_enum->entries, clipbrd->cached_enum->count, cf);
|
entry = find_format_in_list(clipbrd->cached_enum->entries, clipbrd->cached_enum->count, cf);
|
||||||
|
|
||||||
if(entry)
|
if(entry)
|
||||||
|
|
Loading…
Reference in New Issue