Andrew Eikum : winhttp: Indicate that WinHttpCrackUrl should return string pointers.
Module: wine Branch: master Commit: 668d4299b02926f1b7073ef019ec9cc0990e1f69 URL: http://source.winehq.org/git/wine.git/?a=commit;h=668d4299b02926f1b7073ef019... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Wed Aug 31 14:21:00 2016 -0500 winhttp: Indicate that WinHttpCrackUrl should return string pointers. Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winhttp/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c index 30909ff..90e7946 100644 --- a/dlls/winhttp/session.c +++ b/dlls/winhttp/session.c @@ -1750,6 +1750,8 @@ static char *download_script( const WCHAR *url, DWORD *out_size ) memset( &uc, 0, sizeof(uc) ); uc.dwStructSize = sizeof(uc); + uc.dwHostNameLength = -1; + uc.dwUrlPathLength = -1; if (!WinHttpCrackUrl( url, 0, 0, &uc )) return NULL; if (!(hostname = heap_alloc( (uc.dwHostNameLength + 1) * sizeof(WCHAR) ))) return NULL; memcpy( hostname, uc.lpszHostName, uc.dwHostNameLength * sizeof(WCHAR) );
participants (1)
-
Alexandre Julliard