diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-14 20:03:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-14 20:03:42 +0300 |
commit | cbd4d5a24e120de4ce6e2317417a47ca87b93f1f (patch) | |
tree | db53c6d36a0b0a48639b81e24a6cef3e0e576038 /plugins/Msg_Export/src | |
parent | 3fce8a883ba81ac68117c6f6cb5e9b9fd8465bfa (diff) |
MsgExport: fix for memory allocation problem
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-x | plugins/Msg_Export/src/FileViewer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Msg_Export/src/FileViewer.cpp b/plugins/Msg_Export/src/FileViewer.cpp index eedbfd316d..eeb31963ab 100755 --- a/plugins/Msg_Export/src/FileViewer.cpp +++ b/plugins/Msg_Export/src/FileViewer.cpp @@ -556,7 +556,7 @@ bool bAdvancedCopy(HWND hwnd) pszSrcBuf[0] = 0;
SendMessage(hwnd, EM_GETSELTEXT, 0, (LPARAM)pszSrcBuf);
- HANDLE hDecMem = GlobalAlloc(GMEM_MOVEABLE | GMEM_DDESHARE, nSelLenght);
+ HANDLE hDecMem = GlobalAlloc(GMEM_MOVEABLE | GMEM_DDESHARE, nSelLenght * sizeof(wchar_t));
wchar_t *pszCurDec = (wchar_t*)GlobalLock(hDecMem);
bool bInSpaces = false;
|