From 5e9694a1222314d119832b871d293cff8d172378 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 30 Mar 2015 19:57:28 +0000 Subject: CrashDumper: Minor bugfix git-svn-id: http://svn.miranda-ng.org/main/trunk@12561 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/utils.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/CrashDumper/src') diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp index 916fe00275..a592a9f9bc 100644 --- a/plugins/CrashDumper/src/utils.cpp +++ b/plugins/CrashDumper/src/utils.cpp @@ -614,12 +614,13 @@ void StoreStringToClip(CMString& buffer) GlobalUnlock(hData); - OpenClipboard(NULL); - EmptyClipboard(); + if(OpenClipboard(NULL)) { + EmptyClipboard(); - SetClipboardData(CF_UNICODETEXT, hData); - CloseClipboard(); + SetClipboardData(CF_UNICODETEXT, hData); + CloseClipboard(); + } } bool IsPluginEnabled(TCHAR* filename) -- cgit v1.2.3