[PATCH] advapi32: Return on failed allocation (Coverity) (try 2)

André Hentschel nerv at dawncrow.de
Wed Jun 26 12:19:35 CDT 2019


Am 25.06.19 um 00:45 schrieb Alistair Leslie-Hughes:
> Hi André,
> 
>>+    full_name = heap_alloc(size * sizeof(WCHAR));
>>+    if (!full_name)
>>+        return GetLastError();
> Returning GetLastError() doesn't make much sense here since heap_alloc doesn't set it.
> E_OUTOFMEMORY would be a better value.
> 
> Regards
> Alistair.

Thx for the hint!



More information about the wine-devel mailing list