Browse Source

Fixed VS lookup to use the first valid VS version found. This makes sure we use the oldest VS version since Clang will not yet work fully with newer (2013+) MSVC headers.

pull/28/head
triton 12 years ago
parent
commit
354f19f46e
  1. 2
      src/Parser/VSLookup.cpp

2
src/Parser/VSLookup.cpp

@ -108,9 +108,11 @@ static bool getSystemRegistryString(const char *keyPath, const char *valueName, @@ -108,9 +108,11 @@ static bool getSystemRegistryString(const char *keyPath, const char *valueName,
bestIndex = (int)index;
bestValue = value;
strcpy(bestName, keyName);
goto Out;
}
size = sizeof(keyName) - 1;
}
Out:
// If we found the highest versioned key, open the key and get the value.
if (bestIndex != -1) {
// Append rest of key.

Loading…
Cancel
Save