secur32: Increment iteration index after load_package error.

Otherwise if a package fail to load the routine is stuck in a
continuous loop trying to load the package, resulting in a loader
deadlock.

Restore the behaviour before commit 021547cabc.

Signed-off-by: Lorenzo Ferrillo <lorenzofersteam@live.it>
This commit is contained in:
Lorenzo Ferrillo 2023-08-25 23:45:39 +02:00 committed by Alexandre Julliard
parent afb8d94e2f
commit 3957f937fc

View file

@ -967,10 +967,9 @@ void load_auth_packages(void)
if (err != ERROR_SUCCESS)
continue;
if (!load_package(name, &package, i + 1))
continue;
if (load_package(name, &package, i + 1))
add_package(&package);
add_package(&package);
i++;
}