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
9312c453
Commit
9312c453
authored
May 03, 2024
by
Piotr Caban
Committed by
Alexandre Julliard
May 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use GlobalAlloc to allocate lpszProxy in WinHttpGetProxyForUrl.
parent
ff77a49a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
session.c
dlls/winhttp/session.c
+11
-1
No files found.
dlls/winhttp/session.c
View file @
9312c453
...
...
@@ -1896,7 +1896,17 @@ static BOOL parse_script_result( const char *result, WINHTTP_PROXY_INFO *info )
p
+=
5
;
while
(
*
p
==
' '
)
p
++
;
if
(
!*
p
||
*
p
==
';'
)
return
TRUE
;
if
(
!
(
info
->
lpszProxy
=
q
=
strdupAW
(
p
)))
return
FALSE
;
if
(
!
(
q
=
strdupAW
(
p
)))
return
FALSE
;
len
=
wcslen
(
q
);
info
->
lpszProxy
=
GlobalAlloc
(
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
!
info
->
lpszProxy
)
{
free
(
q
);
return
FALSE
;
}
memcpy
(
info
->
lpszProxy
,
q
,
(
len
+
1
)
*
sizeof
(
WCHAR
)
);
free
(
q
);
q
=
info
->
lpszProxy
;
info
->
dwAccessType
=
WINHTTP_ACCESS_TYPE_NAMED_PROXY
;
for
(;
*
q
;
q
++
)
{
...
...
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