Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2e1bec52
Commit
2e1bec52
authored
May 15, 2011
by
Sergey Khodych
Committed by
Alexandre Julliard
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Don't copy valid scheme in UrlApplySchemeW.
parent
2034439d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
url.c
dlls/shlwapi/tests/url.c
+4
-0
url.c
dlls/shlwapi/url.c
+0
-14
No files found.
dlls/shlwapi/tests/url.c
View file @
2e1bec52
...
...
@@ -85,6 +85,10 @@ static const TEST_URL_APPLY TEST_APPLY[] = {
{
"winehq.org"
,
URL_APPLY_GUESSSCHEME
|
URL_APPLY_DEFAULT
,
S_OK
,
17
,
"http://winehq.org"
},
{
"winehq.org"
,
URL_APPLY_GUESSSCHEME
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"winehq.org"
,
URL_APPLY_DEFAULT
,
S_OK
,
17
,
"http://winehq.org"
},
{
"http://www.winehq.org"
,
URL_APPLY_GUESSSCHEME
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"http://www.winehq.org"
,
URL_APPLY_GUESSSCHEME
|
URL_APPLY_FORCEAPPLY
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
"http://www.winehq.org"
,
URL_APPLY_GUESSSCHEME
|
URL_APPLY_FORCEAPPLY
|
URL_APPLY_DEFAULT
,
S_OK
,
28
,
"http://http://www.winehq.org"
},
{
"http://www.winehq.org"
,
URL_APPLY_GUESSSCHEME
|
URL_APPLY_DEFAULT
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
""
,
URL_APPLY_GUESSSCHEME
|
URL_APPLY_DEFAULT
,
S_OK
,
7
,
"http://"
},
{
""
,
URL_APPLY_GUESSSCHEME
,
S_FALSE
,
TEST_APPLY_MAX_LENGTH
,
untouchedA
},
{
""
,
URL_APPLY_DEFAULT
,
S_OK
,
7
,
"http://"
}
...
...
dlls/shlwapi/url.c
View file @
2e1bec52
...
...
@@ -1764,20 +1764,6 @@ HRESULT WINAPI UrlApplySchemeW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut, DW
return
ret
;
}
}
else
{
/* we have a scheme, see if valid (known scheme) */
if
(
in_scheme
.
nScheme
)
{
/* have valid scheme, so just copy and exit */
if
(
strlenW
(
pszIn
)
+
1
>
*
pcchOut
)
{
*
pcchOut
=
strlenW
(
pszIn
)
+
1
;
return
E_POINTER
;
}
strcpyW
(
pszOut
,
pszIn
);
*
pcchOut
=
strlenW
(
pszOut
);
TRACE
(
"valid scheme, returning copy
\n
"
);
return
S_OK
;
}
}
/* If we are here, then either invalid scheme,
* or no scheme and can't/failed guess.
...
...
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