From: Francois Gouget <fgouget(a)codeweavers.com> err must be set if the last attempt to allocate the tables fails. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54328 --- dlls/nsi/nsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/nsi/nsi.c b/dlls/nsi/nsi.c index 345dce6dfe6..6d8ae40a5c7 100644 --- a/dlls/nsi/nsi.c +++ b/dlls/nsi/nsi.c @@ -70,6 +70,7 @@ DWORD WINAPI NsiAllocateAndGetTable( DWORD unk, const NPI_MODULEID *module, DWOR memset( data, 0, sizeof(data) ); err = NsiEnumerateObjectsAllParameters( unk, 0, module, table, NULL, 0, NULL, 0, NULL, 0, NULL, 0, &num ); if (err) return err; + err = ERROR_OUTOFMEMORY; /* fail if this is the last attempt */ } if (!err) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1978