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
2295c637
Commit
2295c637
authored
Jul 27, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Include the extra info part of the URL in the request.
parent
9a790806
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
request.c
dlls/winhttp/request.c
+5
-4
No files found.
dlls/winhttp/request.c
View file @
2295c637
/*
* Copyright 2004 Mike McCormack for CodeWeavers
* Copyright 2006 Rob Shearman for CodeWeavers
* Copyright 2008 Hans Leidekker for CodeWeavers
* Copyright 2008
, 2011
Hans Leidekker for CodeWeavers
* Copyright 2009 Juan Lang
*
* This library is free software; you can redistribute it and/or
...
...
@@ -2450,18 +2450,19 @@ static HRESULT WINAPI winhttp_request_Open(
uc
.
dwSchemeLength
=
~
0u
;
uc
.
dwHostNameLength
=
~
0u
;
uc
.
dwUrlPathLength
=
~
0u
;
uc
.
dwExtraInfoLength
=
~
0u
;
if
(
!
WinHttpCrackUrl
(
url
,
0
,
0
,
&
uc
))
return
HRESULT_FROM_WIN32
(
get_last_error
()
);
if
(
!
(
hostname
=
heap_alloc
(
(
uc
.
dwHostNameLength
+
1
)
*
sizeof
(
WCHAR
)
)))
return
E_OUTOFMEMORY
;
memcpy
(
hostname
,
uc
.
lpszHostName
,
uc
.
dwHostNameLength
*
sizeof
(
WCHAR
)
);
hostname
[
uc
.
dwHostNameLength
]
=
0
;
if
(
!
(
path
=
heap_alloc
(
(
uc
.
dwUrlPathLength
+
1
)
*
sizeof
(
WCHAR
)
)))
if
(
!
(
path
=
heap_alloc
(
(
uc
.
dwUrlPathLength
+
uc
.
dwExtraInfoLength
+
1
)
*
sizeof
(
WCHAR
)
)))
{
heap_free
(
hostname
);
return
E_OUTOFMEMORY
;
}
memcpy
(
path
,
uc
.
lpszUrlPath
,
uc
.
dwUrlPathLength
*
sizeof
(
WCHAR
)
);
path
[
uc
.
dwUrlPathLength
]
=
0
;
memcpy
(
path
,
uc
.
lpszUrlPath
,
(
uc
.
dwUrlPathLength
+
uc
.
dwExtraInfoLength
)
*
sizeof
(
WCHAR
)
);
path
[
uc
.
dwUrlPathLength
+
uc
.
dwExtraInfoLength
]
=
0
;
if
(
V_BOOL
(
&
async
)
==
VARIANT_TRUE
)
flags
|=
WINHTTP_FLAG_ASYNC
;
if
(
!
(
hsession
=
WinHttpOpen
(
user_agentW
,
WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
,
NULL
,
NULL
,
flags
)))
...
...
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