From 59703cc08bea29dc4750e7689ab05b094ac93a38 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 29 Jan 2014 21:26:52 +0000 Subject: [PATCH] Removed early out in VS lookup code that made us prefer the first version found. This was added to workaround VS 2013 type traits parsing problems, but since that's been fixed upstream this no longer makes sense. Fixes PR159. --- src/CppParser/VSLookup.cpp | 2 -- src/Parser/VSLookup.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/CppParser/VSLookup.cpp b/src/CppParser/VSLookup.cpp index 8098bcc9..9974fcd6 100644 --- a/src/CppParser/VSLookup.cpp +++ b/src/CppParser/VSLookup.cpp @@ -108,11 +108,9 @@ 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. diff --git a/src/Parser/VSLookup.cpp b/src/Parser/VSLookup.cpp index 902c14d6..af7d4ba7 100644 --- a/src/Parser/VSLookup.cpp +++ b/src/Parser/VSLookup.cpp @@ -108,11 +108,9 @@ 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.