mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[OLE32] Do not crash on an invalid / empty clipboard.
CORE-12302 svn path=/trunk/; revision=75617
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user