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
efbb50bc
Commit
efbb50bc
authored
Aug 06, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the dwUrlPathLength returned by InternetCrackUrl when
lpszExtraInfo is null.
parent
7d18f571
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
internet.c
dlls/wininet/internet.c
+10
-12
No files found.
dlls/wininet/internet.c
View file @
efbb50bc
...
...
@@ -1155,6 +1155,9 @@ BOOL SetUrlComponentValueW(LPWSTR* lppszComponent, LPDWORD dwComponentLen, LPCWS
{
TRACE
(
"%s (%d)
\n
"
,
debugstr_wn
(
lpszStart
,
len
),
len
);
if
(
(
*
dwComponentLen
==
0
)
&&
(
*
lppszComponent
==
NULL
)
)
return
FALSE
;
if
(
*
dwComponentLen
!=
0
||
*
lppszComponent
==
NULL
)
{
if
(
*
lppszComponent
==
NULL
)
...
...
@@ -1221,11 +1224,8 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
lpszParam
=
strpbrkW
(
lpszap
,
lpszSeparators
);
if
(
lpszParam
!=
NULL
)
{
if
(
!
SetUrlComponentValueW
(
&
lpUC
->
lpszExtraInfo
,
&
lpUC
->
dwExtraInfoLength
,
lpszParam
,
dwUrlLength
-
(
lpszParam
-
lpszUrl
)))
{
return
FALSE
;
}
SetUrlComponentValueW
(
&
lpUC
->
lpszExtraInfo
,
&
lpUC
->
dwExtraInfoLength
,
lpszParam
,
dwUrlLength
-
(
lpszParam
-
lpszUrl
));
}
if
(
bIsAbsolute
)
/* Parse <protocol>:[//<net_loc>] */
...
...
@@ -1235,9 +1235,8 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
/* Get scheme first. */
lpUC
->
nScheme
=
GetInternetSchemeW
(
lpszUrl
,
lpszcp
-
lpszUrl
);
if
(
!
SetUrlComponentValueW
(
&
lpUC
->
lpszScheme
,
&
lpUC
->
dwSchemeLength
,
lpszUrl
,
lpszcp
-
lpszUrl
))
return
FALSE
;
SetUrlComponentValueW
(
&
lpUC
->
lpszScheme
,
&
lpUC
->
dwSchemeLength
,
lpszUrl
,
lpszcp
-
lpszUrl
);
/* Eat ':' in protocol. */
lpszcp
++
;
...
...
@@ -1374,7 +1373,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
/* Only truncate the parameter list if it's already been saved
* in lpUC->lpszExtraInfo.
*/
if
(
lpszParam
&&
lpUC
->
dwExtraInfoLength
)
if
(
lpszParam
&&
lpUC
->
dwExtraInfoLength
&&
lpUC
->
lpszExtraInfo
)
len
=
lpszParam
-
lpszcp
;
else
{
...
...
@@ -1388,9 +1387,8 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
len
=
dwUrlLength
-
(
lpszcp
-
lpszUrl
);
}
if
(
!
SetUrlComponentValueW
(
&
lpUC
->
lpszUrlPath
,
&
lpUC
->
dwUrlPathLength
,
lpszcp
,
len
))
return
FALSE
;
SetUrlComponentValueW
(
&
lpUC
->
lpszUrlPath
,
&
lpUC
->
dwUrlPathLength
,
lpszcp
,
len
);
}
else
{
...
...
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