Browse Source

Merge pull request #1814 from Kelimion/sdk_detect_fix

Fix SDK detection if no SDK installed.
Jeroen van Rijn 3 years ago
parent
commit
d50786bd30
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/microsoft_craziness.h

+ 2 - 2
src/microsoft_craziness.h

@@ -707,8 +707,8 @@ bool find_msvc_install_from_env_vars(Find_Result_Utf8 *result) {
 
 			isize lo = {0};
 			isize hi = {0};
-			for (isize c = 0; c <= path.len; c += 1) {
-				if (c != path.len && path[c] != ';') {
+			for (isize c = 0; c < path.len; c += 1) {
+				if (path[c] != ';') {
 					continue;
 				}