Eric Pouech eric.pouech@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.