[SETUPLIB][REACTOS][USETUP] Don't export setup data. Make IsUnattendedSetup local to the installer.

This commit is contained in:
Hermès Bélusca-Maïto 2025-03-14 13:52:22 +01:00
parent 8d80203d65
commit 8e53386de9
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
10 changed files with 89 additions and 99 deletions

View file

@ -27,7 +27,7 @@ BOOLEAN IsUnattendedSetup = FALSE;
/* FUNCTIONS ****************************************************************/
VOID
BOOLEAN
NTAPI
CheckUnattendedSetup(
IN OUT PUSETUP_DATA pSetupData)
@ -47,7 +47,7 @@ CheckUnattendedSetup(
if (DoesFileExist(NULL, UnattendInfPath) == FALSE)
{
DPRINT("Does not exist: %S\n", UnattendInfPath);
return;
return IsUnattendedSetup;
}
/* Load 'unattend.inf' from installation media */
@ -59,7 +59,7 @@ CheckUnattendedSetup(
if (UnattendInf == INVALID_HANDLE_VALUE)
{
DPRINT("SpInfOpenInfFile() failed\n");
return;
return IsUnattendedSetup;
}
/* Open 'Unattend' section */
@ -200,6 +200,7 @@ CheckUnattendedSetup(
Quit:
SpInfCloseInfFile(UnattendInf);
return IsUnattendedSetup;
}
VOID