mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[OLE32] Do not crash on an invalid / empty clipboard.
CORE-12302 svn path=/trunk/; revision=75617
This commit is contained in:
parent
8998ffaca2
commit
e6008ea636
1 changed files with 7 additions and 1 deletions
|
@ -2018,6 +2018,10 @@ static LRESULT CALLBACK clipbrd_wndproc(HWND hwnd, UINT message, WPARAM wparam,
|
|||
{
|
||||
case WM_RENDERFORMAT:
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
if (clipbrd->cached_enum)
|
||||
{
|
||||
#endif
|
||||
UINT cf = wparam;
|
||||
ole_priv_data_entry *entry;
|
||||
|
||||
|
@ -2026,7 +2030,9 @@ static LRESULT CALLBACK clipbrd_wndproc(HWND hwnd, UINT message, WPARAM wparam,
|
|||
|
||||
if(entry)
|
||||
render_format(clipbrd->src_data, &entry->fmtetc);
|
||||
|
||||
#ifdef __REACTOS__
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue