summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/utils.h')
-rw-r--r--plugins/TabSRMM/src/utils.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/utils.h b/plugins/TabSRMM/src/utils.h
index d2edbc9f6e..a3f83f42bc 100644
--- a/plugins/TabSRMM/src/utils.h
+++ b/plugins/TabSRMM/src/utils.h
@@ -108,8 +108,6 @@ public:
template<typename T> static size_t TSAPI CopyToClipBoard(T* _t, const HWND hwndOwner)
{
- HGLOBAL hData;
-
if (!OpenClipboard(hwndOwner) || _t == 0)
return 0;
@@ -118,7 +116,7 @@ public:
size_t i = _s * (s->length() + 1);
EmptyClipboard();
- hData = ::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, i);
+ HGLOBAL hData = ::GlobalAlloc(GMEM_MOVEABLE | GMEM_SHARE, i);
CopyMemory((void*)GlobalLock(hData), (void*)_t, i);
GlobalUnlock(hData);