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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-09-01 22:01:44 +09:00
parent 2adcec346c
commit 27a73216c0
1 changed files with 3 additions and 1 deletions

View File

@ -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)