GateKeeper.cpp
changeset 139 70232b0fba50
parent 138 053a45ab31e6
child 141 95ae11dfbc8f
     1.1 --- a/GateKeeper.cpp	Sat Jul 02 23:59:59 2016 +0200
     1.2 +++ b/GateKeeper.cpp	Sun Jul 03 00:11:32 2016 +0200
     1.3 @@ -348,9 +348,10 @@
     1.4          for (DWORD i = 0; lResult == ERROR_SUCCESS; i++) {
     1.5              value_name_size = 16383;
     1.6              value_size = L_MAX_URL_LENGTH + 1;
     1.7 -            lResult = RegEnumValue(hkUpdater, 0, value_name, &value_name_size, NULL, NULL, (LPBYTE) value, &value_size);
     1.8 -            if (lResult == ERROR_SUCCESS)
     1.9 +            lResult = RegEnumValue(hkUpdater, i, value_name, &value_name_size, NULL, NULL, (LPBYTE) value, &value_size);
    1.10 +            if (lResult == ERROR_SUCCESS) {
    1.11                  products.push_back({ value_name, value });
    1.12 +            }
    1.13          }
    1.14  
    1.15          return products;