Skip to content

Commit 8cb8d2d

Browse files
committed
[OLE32]
- Gracefully handle NULL clipbrd in clipbrd_wndproc. This is probably not the right fix, but avoids crashing for now. CORE-11905 svn path=/trunk/; revision=72622
1 parent 3b9689a commit 8cb8d2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reactos/dll/win32/ole32/clipboard.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,10 @@ static LRESULT CALLBACK clipbrd_wndproc(HWND hwnd, UINT message, WPARAM wparam,
20012001
ole_clipbrd *clipbrd;
20022002

20032003
get_ole_clipbrd(&clipbrd);
2004+
#ifdef __REACTOS__
2005+
if(clipbrd == NULL)
2006+
return DefWindowProcW(hwnd, message, wparam, lparam);
2007+
#endif
20042008

20052009
switch (message)
20062010
{

0 commit comments

Comments
 (0)