kernel32: avoid shadowing a parameter (try 2)

Henri Verbeet hverbeet at gmail.com
Tue Mar 22 06:19:40 CDT 2011


On 22 March 2011 02:27, Austin English <austinenglish at gmail.com> wrote:
>              defval_tmp = HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR));
> -            memcpy(defval_tmp, def_val, len * sizeof(WCHAR));
> -            defval_tmp[len] = '\0';
> +            memcpy(defval_tmp, def_val, defval_len * sizeof(WCHAR));
> +            defval_tmp[defval_len] = '\0';
I think you're allocating the wrong amount of memory now.



More information about the wine-devel mailing list