advpack: Add the ability to set multiple keys on one line in set_ldid

Alexandre Julliard julliard at winehq.org
Tue Apr 18 09:54:35 CDT 2006


"James Hawkins" <truiken at gmail.com> writes:

> +        /* set all ldids to dest */
> +        while ((ptr = get_parameter(&key, ',')))
> +        {
> +            ldid = atolW(ptr);
> +            SetupSetDirectoryIdW(hInf, ldid, dest);
> +        }
>      } while (SetupFindNextLine(&context, &context));
> +
> +    if (key_alloced)
> +        HeapFree(GetProcessHeap(), 0, key);

You are not freeing the right pointer, key has been modified.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-patches mailing list