[SHELL32] 'Run' dialog box should accept URL (#1153)
[reactos.git] / dll / win32 / shell32 / shlexec.cpp
index 55b3d05..6b7878d 100644 (file)
@@ -2414,7 +2414,7 @@ HRESULT WINAPI ShellExecCmdLine(
         }
     }
 
-    if (UrlIsFileUrlW(lpCommand))
+    if (PathIsURLW(lpCommand) || UrlIsW(lpCommand, URLIS_APPLIABLE))
     {
         StringCchCopyW(szFile, _countof(szFile), lpCommand);
         pchParams = NULL;
@@ -2430,7 +2430,6 @@ HRESULT WINAPI ShellExecCmdLine(
             SearchPathW(pwszStartDir, szFile, wszCom, _countof(szFile2), szFile2, NULL))
         {
             StringCchCopyW(szFile, _countof(szFile), szFile2);
-            pchParams = NULL;
         }
         else if (SearchPathW(NULL, lpCommand, NULL, _countof(szFile2), szFile2, NULL) ||
                  SearchPathW(NULL, lpCommand, wszExe, _countof(szFile2), szFile2, NULL) ||