Hans Leidekker : jsproxy: Don' t use the length parameters in InternetGetProxyInfo.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Apr 20 10:36:08 CDT 2016
Module: wine
Branch: master
Commit: 6ea6b37096f06112d235269fd88d5d0772d6d1fc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ea6b37096f06112d235269fd88d5d0772d6d1fc
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Apr 20 10:14:48 2016 +0200
jsproxy: Don't use the length parameters in InternetGetProxyInfo.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/jsproxy/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/jsproxy/main.c b/dlls/jsproxy/main.c
index e277a0b..d5c3e72 100644
--- a/dlls/jsproxy/main.c
+++ b/dlls/jsproxy/main.c
@@ -97,7 +97,7 @@ static inline BOOL heap_free( LPVOID 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;
if (src)
@@ -628,8 +628,8 @@ BOOL WINAPI InternetGetProxyInfo( LPCSTR url, DWORD len_url, LPCSTR hostname, DW
EnterCriticalSection( &cs_jsproxy );
if (!global_script->text) goto done;
- if (!(urlW = strdupAW( url, len_url ))) goto done;
- if (hostname && !(hostnameW = strdupAW( hostname, len_hostname ))) goto done;
+ if (!(urlW = strdupAW( url, -1 ))) goto done;
+ if (hostname && !(hostnameW = strdupAW( hostname, -1 ))) goto done;
TRACE( "%s\n", debugstr_w(global_script->text) );
ret = run_script( global_script->text, urlW, hostnameW, proxy, len_proxy );
More information about the wine-cvs
mailing list