[PATCH 2/2] dbghelp: handle the case where loader isn't what WINELOADER reports

Alexandre Julliard julliard at winehq.org
Thu Sep 2 10:32:21 CDT 2021


Eric Pouech <eric.pouech at gmail.com> writes:

> -    ret = elf_search_and_load_file(pcs, get_wine_loader_name(pcs), addr, 0, &elf_info);
> +    loader = get_wine_loader_name(pcs);
> +    if (loader)
> +    {
> +        ret = elf_search_and_load_file(pcs, loader, addr, 0, &elf_info);
> +        HeapFree(GetProcessHeap(), 0, (void*)loader);

The casts are ugly. If it's supposed to be freed by caller, it shouldn't
be const.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list