setupapi: fix string conversion in SetupGetInfInformationA()

Jacek Caban jacek at codeweavers.com
Sun Feb 8 13:02:32 CST 2015


Hi Pierre,

On 02/08/15 19:59, Pierre Schweitzer wrote:
>          inf = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
> +        if (!inf)
> +        {
> +            SetLastError(ERROR_NOT_ENOUGH_MEMORY);
> +            return FALSE;

You don't need to call SetLastError here. It's already set by HeapAlloc
on failure.

Jacek



More information about the wine-devel mailing list