From 1398fa5b275c5b14cc288e299b24c83b197103cf Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 3 Dec 2018 16:15:51 +0100 Subject: [PATCH] Fixed missing NULL check for thread handle. --- client/Windows/wf_cliprdr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/Windows/wf_cliprdr.c b/client/Windows/wf_cliprdr.c index bc9890f..d3703c7 100644 --- a/client/Windows/wf_cliprdr.c +++ b/client/Windows/wf_cliprdr.c @@ -2565,9 +2565,10 @@ BOOL wf_cliprdr_uninit(wfContext* wfc, CliprdrClientContext* cliprdr) PostMessage(clipboard->hwnd, WM_QUIT, 0, 0); if (clipboard->thread) + { WaitForSingleObject(clipboard->thread, INFINITE); - - CloseHandle(clipboard->thread); + CloseHandle(clipboard->thread); + } if (clipboard->response_data_event) CloseHandle(clipboard->response_data_event); -- 2.7.4