Commit 27a73216 authored by Alexandre Julliard's avatar Alexandre Julliard

ole32: Cope with receiving WM_RENDERALLFORMATS even when the clipboard is empty.

parent 2adcec34
......@@ -2040,10 +2040,12 @@ static LRESULT CALLBACK clipbrd_wndproc(HWND hwnd, UINT message, WPARAM wparam,
case WM_RENDERALLFORMATS:
{
DWORD i;
ole_priv_data_entry *entries = clipbrd->cached_enum->entries;
ole_priv_data_entry *entries;
TRACE("(): WM_RENDERALLFORMATS\n");
if (!clipbrd || !clipbrd->cached_enum) break;
entries = clipbrd->cached_enum->entries;
for(i = 0; i < clipbrd->cached_enum->count; i++)
{
if(entries[i].first_use)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment