diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-23 22:07:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-23 22:07:41 +0300 |
commit | 61fde2711609ea8a2f1005f21d9ec4502044bce1 (patch) | |
tree | e88ceb6981745c88cd5580c37308a41ed21c2c82 /plugins/TabSRMM/src/utils.cpp | |
parent | 34e059269d3c8a5d999575efce347c116b7be52a (diff) |
tabSRMM: windows virtualization
Diffstat (limited to 'plugins/TabSRMM/src/utils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp index a2cac5183f..d9dec206a3 100644 --- a/plugins/TabSRMM/src/utils.cpp +++ b/plugins/TabSRMM/src/utils.cpp @@ -982,7 +982,7 @@ size_t Utils::CopyToClipBoard(const wchar_t *str, const HWND hwndOwner) LRESULT Utils::WMCopyHandler(HWND hwnd, WNDPROC oldWndProc, UINT msg, WPARAM wParam, LPARAM lParam)
{
- LRESULT result = mir_callNextSubclass(hwnd, oldWndProc, msg, wParam, lParam);
+ LRESULT result = (oldWndProc == nullptr) ? 0 : mir_callNextSubclass(hwnd, oldWndProc, msg, wParam, lParam);
ptrA szFromStream(Message_GetFromStream(hwnd, SF_TEXT | SFF_SELECTION));
if (szFromStream != nullptr) {
|