shlwapi: Import path functions from kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
47c131ebcb
commit
c9940d631b
2766
dlls/shlwapi/path.c
2766
dlls/shlwapi/path.c
File diff suppressed because it is too large
Load Diff
|
@ -2381,53 +2381,6 @@ HRESULT WINAPI UrlGetPartW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut,
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* PathIsURLA [SHLWAPI.@]
|
||||
*
|
||||
* Check if the given path is a Url.
|
||||
*
|
||||
* PARAMS
|
||||
* lpszPath [I] Path to check.
|
||||
*
|
||||
* RETURNS
|
||||
* TRUE if lpszPath is a Url.
|
||||
* FALSE if lpszPath is NULL or not a Url.
|
||||
*/
|
||||
BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
|
||||
{
|
||||
PARSEDURLA base;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE("%s\n", debugstr_a(lpstrPath));
|
||||
|
||||
if (!lpstrPath || !*lpstrPath) return FALSE;
|
||||
|
||||
/* get protocol */
|
||||
base.cbSize = sizeof(base);
|
||||
hres = ParseURLA(lpstrPath, &base);
|
||||
return hres == S_OK && (base.nScheme != URL_SCHEME_INVALID);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* PathIsURLW [SHLWAPI.@]
|
||||
*
|
||||
* See PathIsURLA.
|
||||
*/
|
||||
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
|
||||
{
|
||||
PARSEDURLW base;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE("%s\n", debugstr_w(lpstrPath));
|
||||
|
||||
if (!lpstrPath || !*lpstrPath) return FALSE;
|
||||
|
||||
/* get protocol */
|
||||
base.cbSize = sizeof(base);
|
||||
hres = ParseURLW(lpstrPath, &base);
|
||||
return hres == S_OK && (base.nScheme != URL_SCHEME_INVALID);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* UrlCreateFromPathA [SHLWAPI.@]
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue