Created
August 26, 2014 10:46
-
-
Save mattn/4d94e093bb777f79c444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r aeafe78fc869 src/os_win32.c | |
--- a/src/os_win32.c Fri Aug 22 13:13:28 2014 +0200 | |
+++ b/src/os_win32.c Tue Aug 26 19:45:58 2014 +0900 | |
@@ -1917,7 +1917,7 @@ | |
if (p != NULL) | |
{ | |
- n = (long)SearchPathW(NULL, p, NULL, _MAX_PATH, fnamew, &dumw); | |
+ n = (long)SearchPathW(_wgetenv(L"PATH"), p, NULL, _MAX_PATH, fnamew, &dumw); | |
vim_free(p); | |
if (n > 0 || GetLastError() != ERROR_CALL_NOT_IMPLEMENTED) | |
{ | |
@@ -1933,7 +1933,7 @@ | |
} | |
} | |
#endif | |
- if (SearchPath(NULL, name, NULL, _MAX_PATH, fname, &dum) == 0) | |
+ if (SearchPath(mch_getenv("PATH"), name, NULL, _MAX_PATH, fname, &dum) == 0) | |
return FALSE; | |
if (mch_isdir(fname)) | |
return FALSE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment