"Colin Finck" mail@colinfinck.de wrote: wrote:
@@ -425,6 +425,7 @@ static LPWSTR get_url(void) HKEY hkey; DWORD res, type; DWORD size = INTERNET_MAX_URL_LENGTH*sizeof(WCHAR);
DWORD returned_size; LPWSTR url;
static const WCHAR wszGeckoUrl[] = {'G','e','c','k','o','U','r','l',0};
@@ -438,14 +439,14 @@ static LPWSTR get_url(void)
url = heap_alloc(size);
- res = RegQueryValueExW(hkey, wszGeckoUrl, NULL, &type, (LPBYTE)url, &size);
- res = RegQueryValueExW(hkey, wszGeckoUrl, NULL, &type, (LPBYTE)url, &returned_size);
returned_size must be intialized first.
Dmitry Timoshkov wrote:
returned_size must be intialized first.
That's what I've already fixed in an updated patch yesterday: http://www.winehq.org/pipermail/wine-patches/2009-April/072175.html
Best regards,
Colin