shlwapi: Implement stub for UrlFixupW.

This commit is contained in:
Owen Rudge 2009-09-02 16:38:12 +01:00 committed by Alexandre Julliard
parent e6f2ec4766
commit 5f28a6a2d5
2 changed files with 33 additions and 1 deletions

View File

@ -459,7 +459,7 @@
459 stdcall -noname SHExpandEnvironmentStringsA(str ptr long) kernel32.ExpandEnvironmentStringsA
460 stdcall -noname SHExpandEnvironmentStringsW(wstr ptr long) kernel32.ExpandEnvironmentStringsW
461 stdcall -noname SHGetAppCompatFlags(long)
462 stub -noname UrlFixupW
462 stdcall -noname UrlFixupW(wstr wstr long)
463 stub -noname SHExpandEnvironmentStringsForUserA
464 stub -noname SHExpandEnvironmentStringsForUserW
465 stub -noname PathUnExpandEnvStringsForUserA

View File

@ -2382,3 +2382,35 @@ HRESULT WINAPI MLBuildResURLW(LPCWSTR lpszLibName, HMODULE hMod, DWORD dwFlags,
}
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;
}