summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/commonheaders.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-04-07 19:17:54 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-04-07 19:17:54 +0000
commitaed337ad90f145991a39b7900b8d42dc18178366 (patch)
treeca09e611f0f0fd6f6ba8c83364f548d097e3ab2e /plugins/SecureIM/src/commonheaders.cpp
parentf19019ce1e932f1c773ca00e87fd64aea6e32430 (diff)
SecureIM:
- Minor Fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/commonheaders.cpp')
-rw-r--r--plugins/SecureIM/src/commonheaders.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/SecureIM/src/commonheaders.cpp b/plugins/SecureIM/src/commonheaders.cpp
index 8f432bb761..28e8dc4e52 100644
--- a/plugins/SecureIM/src/commonheaders.cpp
+++ b/plugins/SecureIM/src/commonheaders.cpp
@@ -87,10 +87,11 @@ void CopyToClipboard(HWND hwnd, LPSTR msg)
mir_strcpy(lpstrCopy, msg);
GlobalUnlock(hglbCopy);
- OpenClipboard(NULL);
- EmptyClipboard();
- SetClipboardData(CF_TEXT, hglbCopy);
- CloseClipboard();
+ if(OpenClipboard(NULL)) {
+ EmptyClipboard();
+ SetClipboardData(CF_TEXT, hglbCopy);
+ CloseClipboard();
+ }
}
HANDLE hNetlibUser;