2
0
mirror of https://github.com/boostorg/dll.git synced 2026-01-19 04:12:08 +00:00

Minor tweak to restart CI

This commit is contained in:
Antony Polukhin
2025-06-10 21:34:44 +03:00
committed by GitHub
parent 3663b87e67
commit 67ecfd32d6

View File

@@ -143,13 +143,13 @@ namespace boost { namespace dll { namespace detail {
#if BOOST_OS_CYGWIN
// Cygwin doesn't have <link.h> header
unsigned long long DEFAULT_BUFFER_SIZE = 4096;
std::vector<wchar_t> buffer(DEFAULT_BUFFER_SIZE);
unsigned long long buffer_size = 4096;
std::vector<wchar_t> buffer;
do
{
buffer.resize(DEFAULT_BUFFER_SIZE);
buffer.resize(buffer_size);
GetModuleFileNameW(handle, buffer.data(), buffer.size());
DEFAULT_BUFFER_SIZE *= 2;
buffer_size *= 2;
} while (GetLastError() == 122 /* ERROR_INSUFFICIENT_BUFFER */);
if (GetLastError() == 0)
{