From: Zhipeng Zhao zhaozhipeng@uniontech.com
Signed-off-by: Zhipeng Zhao zhaozhipeng@uniontech.com Signed-off-by: Huw Davies huw@codeweavers.com --- dlls/ole32/clipboard.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c index 9df37750a32..cb6770c05b3 100644 --- a/dlls/ole32/clipboard.c +++ b/dlls/ole32/clipboard.c @@ -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)