[ZIPFLDR] Implement RouteTheCall, so that applications can 'launch' zip files
authorMark Jansen <mark.jansen@reactos.org>
Sat, 21 Apr 2018 22:00:34 +0000 (00:00 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 5 Aug 2018 09:54:56 +0000 (11:54 +0200)
dll/shellext/zipfldr/zipfldr.cpp

index 27a354e..2b9e5b6 100644 (file)
@@ -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;
 }