[PATCH] dbghelp: Implement SymFromNameW().

Dmitry Timoshkov dmitry at baikal.ru
Thu Apr 22 05:14:36 CDT 2021


Gijs Vermeulen <gijsvrm at gmail.com> wrote:

> +    len = sizeof(*si) + symbol->MaxNameLen * sizeof(WCHAR);
> +    if (!(si = HeapAlloc(GetProcessHeap(), 0, len))) return FALSE;
> +
> +    len = WideCharToMultiByte(CP_ACP, 0, name, -1, NULL, 0, NULL, NULL);
> +    if (!(tmp = HeapAlloc(GetProcessHeap(), 0, len))) return FALSE;

'si' is leaked on error path.

-- 
Dmitry.



More information about the wine-devel mailing list