diff --git a/src/windows/entrypoint.c b/src/windows/entrypoint.c index 1a2dbef..f2b6355 100644 --- a/src/windows/entrypoint.c +++ b/src/windows/entrypoint.c @@ -176,7 +176,7 @@ BOOL WINAPI DllEntry(HINSTANCE hInstDll, DWORD reasonForDllLoad, init_logger(); DoorstopPaths *paths = paths_init(hInstDll, fixed_cwd); - GetStdHandle(STD_OUTPUT_HANDLE); + stdout_handle = GetStdHandle(STD_OUTPUT_HANDLE); // TODO: Some MinGW distributons don't seem to have GetFinalPathNameByHandle // properly defined