Index: src/chext/DropMenuExt.cpp =================================================================== diff -u -N -r633a533cb6e741d44fe28aa56339e1d2709b1b27 -rbe5d5dfa17e79a1db8e64ad2d2ed5faea30399cb --- src/chext/DropMenuExt.cpp (.../DropMenuExt.cpp) (revision 633a533cb6e741d44fe28aa56339e1d2709b1b27) +++ src/chext/DropMenuExt.cpp (.../DropMenuExt.cpp) (revision be5d5dfa17e79a1db8e64ad2d2ed5faea30399cb) @@ -24,7 +24,6 @@ #include "../libchcore/TTaskDefinition.h" #include #include "ShellPathsHelpers.h" -#include "../libchcore/TWStringData.h" #include "../common/TShellExtMenuConfig.h" #include "../libchcore/TSharedMemory.h" @@ -150,14 +149,14 @@ tTaskDefinition.SetOperationType(eOperationType); // get task data as xml - chcore::TWStringData wstrData; + chcore::TString wstrData; tTaskDefinition.StoreInString(wstrData); // fill struct COPYDATASTRUCT cds; cds.dwData = spSelectedItem->IsSpecialOperation() ? eCDType_TaskDefinitionContentSpecial : eCDType_TaskDefinitionContent; - cds.lpData = (void*)wstrData.GetData(); - cds.cbData = (DWORD)wstrData.GetBytesCount(); + cds.lpData = (void*)(const wchar_t*)wstrData; + cds.cbData = (DWORD)((wstrData.GetLength() + 1) * sizeof(wchar_t)); // send a message ::SendMessage(hWnd, WM_COPYDATA, reinterpret_cast(lpici->hwnd), reinterpret_cast(&cds)); @@ -230,7 +229,7 @@ std::wstring strSHMName = IPCSupport::GenerateSHMName(ulSHMID); chcore::TSharedMemory tSharedMemory; - chcore::TWStringData wstrData; + chcore::TString wstrData; chcore::TConfig cfgShellExtData; tSharedMemory.Open(strSHMName.c_str());