2
0
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:
Klemens Morgenstern
2024-12-20 18:49:49 +08:00
committed by Klemens Morgenstern
parent a6f2a1d005
commit d75ffb30ee
3 changed files with 4 additions and 4 deletions

View File

@@ -318,8 +318,6 @@ struct basic_process_handle_win
}
};
extern template struct basic_process_handle_win<>;
}
BOOST_PROCESS_V2_END_NAMESPACE

View File

@@ -158,7 +158,6 @@ void resume_(HANDLE handle, error_code & ec)
}
#endif
template struct basic_process_handle_win<>;
}

View File

@@ -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 "";
}