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
4d2bd364
Commit
4d2bd364
authored
Jul 23, 2000
by
John R. Sheets
Committed by
Alexandre Julliard
Jul 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put the URL parameter list in with the URL path if the ExtraInfo
buffer isn't specified.
parent
9fe0e634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
internet.c
dlls/wininet/internet.c
+22
-3
No files found.
dlls/wininet/internet.c
View file @
4d2bd364
...
...
@@ -646,9 +646,27 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
*/
if
(
lpszcp
!=
0
&&
*
lpszcp
!=
'\0'
&&
(
!
lpszParam
||
lpszcp
<
lpszParam
))
{
INT
len
;
/* Only truncate the parameter list if it's already been saved
* in lpUrlComponents->lpszExtraInfo.
*/
if
(
lpszParam
&&
lpUrlComponents
->
dwExtraInfoLength
)
len
=
lpszParam
-
lpszcp
;
else
{
/* Leave the parameter list in lpszUrlPath. Strip off any trailing
* newlines if necessary.
*/
LPSTR
lpsznewline
=
strchr
(
lpszcp
,
'\n'
);
if
(
lpsznewline
!=
NULL
)
len
=
lpsznewline
-
lpszcp
;
else
len
=
strlen
(
lpszcp
);
}
if
(
!
SetUrlComponentValue
(
&
lpUrlComponents
->
lpszUrlPath
,
&
lpUrlComponents
->
dwUrlPathLength
,
lpszcp
,
lpszParam
?
lpszParam
-
lpszcp
:
strlen
(
lpszcp
)))
&
lpUrlComponents
->
dwUrlPathLength
,
lpszcp
,
len
))
return
FALSE
;
}
else
...
...
@@ -656,7 +674,8 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
lpUrlComponents
->
dwUrlPathLength
=
0
;
}
TRACE
(
"%s: host(%s) path(%s)
\n
"
,
lpszUrl
,
lpUrlComponents
->
lpszHostName
,
lpUrlComponents
->
lpszUrlPath
);
TRACE
(
"%s: host(%s) path(%s) extra(%s)
\n
"
,
lpszUrl
,
lpUrlComponents
->
lpszHostName
,
lpUrlComponents
->
lpszUrlPath
,
lpUrlComponents
->
lpszExtraInfo
);
return
TRUE
;
}
...
...
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