mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-12 02:00:27 +08:00
Apply same UIPI fix to MultiCommander integration
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
This commit is contained in:
@@ -46,6 +46,10 @@ void MultiCommander::GetSelected(PWCHAR buffer)
|
||||
return;
|
||||
}
|
||||
|
||||
if (pCurrentItemPath == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto path = reinterpret_cast<PWCHAR>(pCurrentItemPath);
|
||||
wcscpy_s(buffer, wcslen(path) + 1, path);
|
||||
|
||||
@@ -84,6 +88,7 @@ LRESULT CALLBACK MultiCommander::msgWindowProc(HWND hWnd, UINT uMsg, WPARAM wPar
|
||||
case WM_COPYDATA:
|
||||
{
|
||||
delete[] pCurrentItemPath;
|
||||
pCurrentItemPath = nullptr;
|
||||
|
||||
auto cds = reinterpret_cast<PCOPYDATASTRUCT>(lParam);
|
||||
auto buf = static_cast<PCHAR>(cds->lpData);
|
||||
|
||||
Reference in New Issue
Block a user