diff --git a/win32ss/user/ntuser/clipboard.c b/win32ss/user/ntuser/clipboard.c index d144220a18..8cbe00dd7f 100644 --- a/win32ss/user/ntuser/clipboard.c +++ b/win32ss/user/ntuser/clipboard.c @@ -379,6 +379,9 @@ UserClipboardRelease(PWND pWindow) if (!pWinStaObj) return; + if (!pWindow) + return; + co_IntSendMessage(pWinStaObj->spwndClipOwner->head.h, WM_RENDERALLFORMATS, 0, 0); /* If the window being destroyed is the current clipboard owner... */