mirror of
https://github.com/boostorg/process.git
synced 2026-01-19 04:22:15 +00:00
Fix crash on search_path on Windows when PATHEXT is not found
This commit is contained in:
committed by
Klemens Morgenstern
parent
765650aed3
commit
d7df60938e
@@ -35,7 +35,9 @@ inline boost::process::filesystem::path search_path(
|
||||
[&](const value_type & e)
|
||||
{return id == ::boost::to_upper_copy(e.get_name(), ::boost::process::detail::process_locale());});
|
||||
|
||||
auto extensions_in = itr->to_vector();
|
||||
std::vector<std::wstring> extensions_in;
|
||||
if (itr != ne.cend())
|
||||
extensions_in = itr->to_vector();
|
||||
|
||||
std::vector<std::wstring> extensions((extensions_in.size() * 2) + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user