From 54433319af31c2b49737469d36072153de375f4d Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:20:41 +0200 Subject: [PATCH] [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; }