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>
feature/deterministic
Zhipeng Zhao 2020-06-09 09:18:39 +01:00 committed by Alexandre Julliard
parent a18bc50f2f
commit 065b56e4e1
1 changed files with 2 additions and 0 deletions

View File

@ -2066,6 +2066,8 @@ static LRESULT CALLBACK clipbrd_wndproc(HWND hwnd, UINT message, WPARAM wparam,
ole_priv_data_entry *entry;
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);
if(entry)