From eb324b6a9cc7bfe8f49acd23fea6f5832fac3a05 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 22 Apr 2018 00:00:34 +0200 Subject: [PATCH] [ZIPFLDR] Implement RouteTheCall, so that applications can 'launch' zip files --- dll/shellext/zipfldr/zipfldr.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dll/shellext/zipfldr/zipfldr.cpp b/dll/shellext/zipfldr/zipfldr.cpp index 27a354e0a1a..2b9e5b63801 100644 --- a/dll/shellext/zipfldr/zipfldr.cpp +++ b/dll/shellext/zipfldr/zipfldr.cpp @@ -109,9 +109,13 @@ BOOL WINAPI RouteTheCall( IN HWND hWndOwner, IN HINSTANCE hInstance, - IN LPWSTR lpNamedPipeName, + IN LPCSTR lpStringArg, IN INT Show) { - UNIMPLEMENTED; - return FALSE; + CStringW path = lpStringArg; + PathRemoveBlanksW(path.GetBuffer()); + path.ReleaseBuffer(); + path = L"\"" + path + L"\""; + ShellExecuteW(NULL, L"open", L"explorer.exe", path.GetString(), NULL, SW_SHOWNORMAL); + return TRUE; }