[SHELL32] 'Run' dialog box should accept URL (#1153)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 17 Dec 2018 13:37:51 +0000 (22:37 +0900)
committerGitHub <noreply@github.com>
Mon, 17 Dec 2018 13:37:51 +0000 (22:37 +0900)
Fix ShellExecCmdLine function. CORE-15455, CORE-11772

dll/win32/shell32/shlexec.cpp

index 09ccfec..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;