Module: wine Branch: master Commit: cc32eb6c0d9f5fa834ee628529fccea51fafc00d URL: https://gitlab.winehq.org/wine/wine/-/commit/cc32eb6c0d9f5fa834ee628529fccea...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Jan 17 19:34:37 2023 +0100
nsi: Return an error if NsiAllocateAndGetTable() fails to allocate the tables.
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)