Otherwise if a package fail to load the routine is stuck in a continuos loop trying to load the package, resulting in a loader deadlock.
This was manifested as a regression when starting visual studio 2019, trying to load the SSO lsa package, that was failing because no SSO.dll was present (or loadable)
Restore the behaviour before commit 021547cabcb811c38060a2f7e675c25d26f16d3d (Pull Request !3472) Signed-Off-By: Lorenzo Ferrillo lorenzofersteam@live.it
-- v2: secur32: Increment iteration index after load_package error