Commit 5d93b6ed authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

Fix PathCreateFromUrl{A|W} to return the corrrect error code in all

cases.
parent ce4f093d
......@@ -1110,7 +1110,7 @@ BOOL WINAPI PathIsSameRootA(LPCSTR lpszPath1, LPCSTR lpszPath2)
{
if (lpszPath1[pos]=='\\') bsfound++;
if (bsfound == 2) return TRUE;
pos++; /* fixme: use CharNext*/
pos++; /* FIXME: use CharNext*/
}
return (lpszPath1[pos] == lpszPath2[pos]);
}
......@@ -1142,7 +1142,7 @@ BOOL WINAPI PathIsSameRootW(LPCWSTR lpszPath1, LPCWSTR lpszPath2)
{
if (lpszPath1[pos]=='\\') bsfound++;
if (bsfound == 2) return TRUE;
pos++;/* fixme: use CharNext*/
pos++;/* FIXME: use CharNext*/
}
return (lpszPath1[pos] == lpszPath2[pos]);
}
......@@ -1773,9 +1773,15 @@ HRESULT WINAPI PathCreateFromUrlA(
LPDWORD pcchPath,
DWORD dwFlags)
{
/* extracts thing prior to : in pszURL and checks against:
* https
* shell
* local
* about - if match returns E_INVALIDARG
*/
FIXME("%s %p %p 0x%08lx\n",
pszUrl, pszPath, pcchPath, dwFlags);
return S_OK;
return E_INVALIDARG;
}
/*************************************************************************
......@@ -1787,9 +1793,15 @@ HRESULT WINAPI PathCreateFromUrlW(
LPDWORD pcchPath,
DWORD dwFlags)
{
/* extracts thing prior to : in pszURL and checks against:
* https
* shell
* local
* about - if match returns E_INVALIDARG
*/
FIXME("%s %p %p 0x%08lx\n",
debugstr_w(pszUrl), pszPath, pcchPath, dwFlags);
return S_OK;
return E_INVALIDARG;
}
/*************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment