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:
parent
2adcec346c
commit
27a73216c0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue