mirror of
https://github.com/boostorg/process.git
synced 2026-01-19 04:22:15 +00:00
windows link fixes.
This commit is contained in:
committed by
Klemens Morgenstern
parent
a6f2a1d005
commit
d75ffb30ee
@@ -318,8 +318,6 @@ struct basic_process_handle_win
|
||||
}
|
||||
};
|
||||
|
||||
extern template struct basic_process_handle_win<>;
|
||||
|
||||
}
|
||||
|
||||
BOOST_PROCESS_V2_END_NAMESPACE
|
||||
|
||||
@@ -158,7 +158,6 @@ void resume_(HANDLE handle, error_code & ec)
|
||||
}
|
||||
#endif
|
||||
|
||||
template struct basic_process_handle_win<>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ filesystem::path exe(HANDLE process_handle)
|
||||
|
||||
filesystem::path exe(HANDLE proc, boost::system::error_code & ec)
|
||||
{
|
||||
#if _WIN32_WINNT >= 0x0600
|
||||
wchar_t buffer[MAX_PATH];
|
||||
// On input, specifies the size of the lpExeName buffer, in characters.
|
||||
DWORD size = MAX_PATH;
|
||||
@@ -84,7 +85,9 @@ filesystem::path exe(HANDLE proc, boost::system::error_code & ec)
|
||||
}
|
||||
else
|
||||
BOOST_PROCESS_V2_ASSIGN_LAST_ERROR(ec);
|
||||
|
||||
#else
|
||||
BOOST_PROCESS_V2_ASSIGN_EC(ec, net::error::operation_not_supported);
|
||||
#endif
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user