Skip to content

Commit

Permalink
Fix stdout_handle not being assigned on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorsington committed Jun 15, 2022
1 parent 765620f commit 115726b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/entrypoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 115726b

Please # to comment.