diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-30 19:57:28 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-30 19:57:28 +0000 |
commit | 5e9694a1222314d119832b871d293cff8d172378 (patch) | |
tree | 197f2f8efdcc338e67856baff97f45187a7a632c /plugins/CrashDumper/src | |
parent | 9a753a531c3f61dde3c98bd9f4423a201e311923 (diff) |
CrashDumper: Minor bugfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12561 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src')
-rw-r--r-- | plugins/CrashDumper/src/utils.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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)
|