diff options
Diffstat (limited to 'plugins/SecureIM/src/commonheaders.cpp')
-rw-r--r-- | plugins/SecureIM/src/commonheaders.cpp | 9 |
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;
|