Lines Matching refs:wrapped_script_path
688 static wchar_t wrapped_script_path[MAX_PATH];
693 * wrapped_script_path, or terminate the program with an error if there is no
703 plen = GetModuleFileNameW(NULL, wrapped_script_path, MAX_PATH);
704 p = wcsrchr(wrapped_script_path, L'.');
707 wrapped_script_path);
708 error(RC_NO_SCRIPT, L"Wrapper name '%ls' is not valid.", wrapped_script_path);
711 wcsncpy_s(p, MAX_PATH - (p - wrapped_script_path) + 1, SCRIPT_SUFFIX, _TRUNCATE);
712 attrs = GetFileAttributesW(wrapped_script_path);
714 debug(L"File '%ls' non-existent\n", wrapped_script_path);
715 error(RC_NO_SCRIPT, L"Script file '%ls' is not present.", wrapped_script_path);
718 debug(L"Using wrapped script file '%ls'\n", wrapped_script_path);
1888 newlen = wcslen(wrapped_script_path) + wcslen(command) + 2; /* ' ' + NUL */
1894 wcscpy_s(newcommand, newlen, wrapped_script_path);
1899 av[0] = wrapped_script_path;