[PATCH] advapi32: Return on failed allocation (Coverity) (try 2)
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Mon Jun 24 17:45:32 CDT 2019
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190624/78c37405/attachment.html>
More information about the wine-devel
mailing list