Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5f28a6a2
Commit
5f28a6a2
authored
Sep 02, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Implement stub for UrlFixupW.
parent
e6f2ec47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-1
url.c
dlls/shlwapi/url.c
+32
-0
No files found.
dlls/shlwapi/shlwapi.spec
View file @
5f28a6a2
...
...
@@ -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 st
ub -noname UrlFixupW
462 st
dcall -noname UrlFixupW(wstr wstr long)
463 stub -noname SHExpandEnvironmentStringsForUserA
464 stub -noname SHExpandEnvironmentStringsForUserW
465 stub -noname PathUnExpandEnvStringsForUserA
...
...
dlls/shlwapi/url.c
View file @
5f28a6a2
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment