File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -867,6 +867,7 @@ public override void Activate(string templateName) {
867867
868868 TemplateElement activeTemplateElement = GetActiveTemplateElement ( true , TemplateName ) ;
869869 ModificationsElement activeModificationsElement = activeTemplateElement . Modifications ;
870+ int registryStateIndex = 0 ;
870871 RegistryStateElement registryStateElement = null ;
871872 RegistryStateElement activeRegistryStateElement = null ;
872873 string keyName = null ;
@@ -895,8 +896,6 @@ public override void Activate(string templateName) {
895896
896897 ProgressManager . CurrentGoal . Start ( modificationsElement . RegistryStates . Count + modificationsElement . RegistryStates . Count ) ;
897898
898- int registryStateIndex = 0 ;
899-
900899 try {
901900 // populate active modifications
902901 for ( int i = 0 ; i < modificationsElement . RegistryStates . Count ; i ++ ) {
@@ -1089,7 +1088,7 @@ public override void Activate(string templateName) {
10891088 ProgressManager . CurrentGoal . Steps ++ ;
10901089 }
10911090 } catch {
1092- // remove keys we didn't touch
1091+ // remove registry states we didn't modify
10931092 try {
10941093 while ( registryStateIndex < activeModificationsElement . RegistryStates . Count ) {
10951094 activeModificationsElement . RegistryStates . RemoveAt ( registryStateIndex ) ;
You can’t perform that action at this time.
0 commit comments