decompals / wibo

Quick-and-dirty wrapper that tries to run 32-bit Windows command-line executables on Linux
MIT License
57 stars 19 forks source link

Handle GetCurrentDirectory required buffer size return value #27

Closed r-burns closed 1 year ago

r-burns commented 1 year ago

When the output buffer size is too small, GetCurrentDirectory does nothing and simply returns the larger required size.

https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcurrentdirectory#return-value

Needed to run Code Warrior 4 mwcc.exe with no arguments, displaying usage/help message.

(Still unable to compile/preprocess with CW4 mwcc.exe)