Commit 5f28a6a2 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

shlwapi: Implement stub for UrlFixupW.

parent e6f2ec47
...@@ -459,7 +459,7 @@ ...@@ -459,7 +459,7 @@
459 stdcall -noname SHExpandEnvironmentStringsA(str ptr long) kernel32.ExpandEnvironmentStringsA 459 stdcall -noname SHExpandEnvironmentStringsA(str ptr long) kernel32.ExpandEnvironmentStringsA
460 stdcall -noname SHExpandEnvironmentStringsW(wstr ptr long) kernel32.ExpandEnvironmentStringsW 460 stdcall -noname SHExpandEnvironmentStringsW(wstr ptr long) kernel32.ExpandEnvironmentStringsW
461 stdcall -noname SHGetAppCompatFlags(long) 461 stdcall -noname SHGetAppCompatFlags(long)
462 stub -noname UrlFixupW 462 stdcall -noname UrlFixupW(wstr wstr long)
463 stub -noname SHExpandEnvironmentStringsForUserA 463 stub -noname SHExpandEnvironmentStringsForUserA
464 stub -noname SHExpandEnvironmentStringsForUserW 464 stub -noname SHExpandEnvironmentStringsForUserW
465 stub -noname PathUnExpandEnvStringsForUserA 465 stub -noname PathUnExpandEnvStringsForUserA
......
...@@ -2382,3 +2382,35 @@ HRESULT WINAPI MLBuildResURLW(LPCWSTR lpszLibName, HMODULE hMod, DWORD dwFlags, ...@@ -2382,3 +2382,35 @@ HRESULT WINAPI MLBuildResURLW(LPCWSTR lpszLibName, HMODULE hMod, DWORD dwFlags,
} }
return hRet; return hRet;
} }
/***********************************************************************
* UrlFixupW [SHLWAPI.462]
*
* Checks the scheme part of a URL and attempts to correct misspellings.
*
* PARAMS
* lpszUrl [I] Pointer to the URL to be corrected
* lpszTranslatedUrl [O] Pointer to a buffer to store corrected URL
* dwMaxChars [I] Maximum size of corrected URL
*
* RETURNS
* success: S_OK if URL corrected or already correct
* failure: S_FALSE if unable to correct / COM error code if other error
*
*/
HRESULT WINAPI UrlFixupW(LPCWSTR url, LPWSTR translatedUrl, DWORD maxChars)
{
DWORD srcLen;
FIXME("(%s,%p,%d) STUB\n", debugstr_w(url), translatedUrl, maxChars);
if (!url)
return E_FAIL;
srcLen = lstrlenW(url);
/* For now just copy the URL directly */
lstrcpynW(translatedUrl, url, (maxChars < srcLen) ? maxChars : srcLen);
return S_OK;
}
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