https://git.reactos.org/?p=reactos.git;a=commitdiff;h=54433319af31c2b497374…
commit 54433319af31c2b49737469d36072153de375f4d
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Wed Oct 16 12:20:41 2024 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Oct 16 12:20:41 2024 +0200
[USETUP] CabinetExtractFile(): Do not overwrite Status value (#7456)
Addendum to 5d4d912 (r15403).
---
base/setup/usetup/spapisup/cabinet.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/base/setup/usetup/spapisup/cabinet.c b/base/setup/usetup/spapisup/cabinet.c
index 52c35ed1888..831ee8b5308 100644
--- a/base/setup/usetup/spapisup/cabinet.c
+++ b/base/setup/usetup/spapisup/cabinet.c
@@ -1260,7 +1260,8 @@ CabinetExtractFile(
DPRINT("Cannot uncompress block\n");
if (Status == CS_NOMEMORY)
Status = CAB_STATUS_NOMEMORY;
- Status = CAB_STATUS_INVALID_CAB;
+ else
+ Status = CAB_STATUS_INVALID_CAB;
goto UnmapDestFile;
}