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
6ea6b370
Commit
6ea6b370
authored
Apr 20, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsproxy: Don't use the length parameters in InternetGetProxyInfo.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d4c9440f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/jsproxy/main.c
+3
-3
No files found.
dlls/jsproxy/main.c
View file @
6ea6b370
...
@@ -97,7 +97,7 @@ static inline BOOL heap_free( LPVOID mem )
...
@@ -97,7 +97,7 @@ static inline BOOL heap_free( LPVOID mem )
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
}
static
inline
WCHAR
*
strdupAW
(
const
char
*
src
,
DWORD
len
)
static
inline
WCHAR
*
strdupAW
(
const
char
*
src
,
int
len
)
{
{
WCHAR
*
dst
=
NULL
;
WCHAR
*
dst
=
NULL
;
if
(
src
)
if
(
src
)
...
@@ -628,8 +628,8 @@ BOOL WINAPI InternetGetProxyInfo( LPCSTR url, DWORD len_url, LPCSTR hostname, DW
...
@@ -628,8 +628,8 @@ BOOL WINAPI InternetGetProxyInfo( LPCSTR url, DWORD len_url, LPCSTR hostname, DW
EnterCriticalSection
(
&
cs_jsproxy
);
EnterCriticalSection
(
&
cs_jsproxy
);
if
(
!
global_script
->
text
)
goto
done
;
if
(
!
global_script
->
text
)
goto
done
;
if
(
!
(
urlW
=
strdupAW
(
url
,
len_url
)))
goto
done
;
if
(
!
(
urlW
=
strdupAW
(
url
,
-
1
)))
goto
done
;
if
(
hostname
&&
!
(
hostnameW
=
strdupAW
(
hostname
,
len_hostname
)))
goto
done
;
if
(
hostname
&&
!
(
hostnameW
=
strdupAW
(
hostname
,
-
1
)))
goto
done
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
global_script
->
text
)
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
global_script
->
text
)
);
ret
=
run_script
(
global_script
->
text
,
urlW
,
hostnameW
,
proxy
,
len_proxy
);
ret
=
run_script
(
global_script
->
text
,
urlW
,
hostnameW
,
proxy
,
len_proxy
);
...
...
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