Lines Matching defs:filename
686 // Might have a script filename. If it looks like a filename, add
780 wchar_t filename[MAXLEN];
781 if (wcsncpy_s(filename, MAXLEN, command, lastDot)) {
787 if (!lastDot || _comparePath(&filename[lastDot], -1, ext, -1)) {
788 if (wcscat_s(filename, MAXLEN, L".exe")) {
799 winerror(0, L"Failed to read PATH\n", filename);
804 n = SearchPathW(pathVariable, filename, NULL, MAXLEN, buffer, NULL);
807 debug(L"# Did not find %s on PATH\n", filename);
812 winerror(0, L"Failed to find %s on PATH\n", filename);
818 if (GetModuleFileNameW(NULL, filename, MAXLEN) &&
819 0 == _comparePath(filename, -1, buffer, -1)) {