Hi Saulius,

Thanks for the suggestion. Wouldn't that affect just a few lines of code in the function? Specifically, the part immediately before this patch inserts code?
--
Kind regards,
Mohamad


On Sun, Feb 27, 2022 at 5:14 AM Saulius Krasuckas <saulius2@ar-fi.lt> wrote:
* On 2022-02-27 08:52, Mohamad Al-Jaf wrote:

> The #ifdef and goto statements make the code
> look a bit messy IMO. The differing methods
> of retrieving the path made it difficult to
> organize the code.

Maybe a runtime check including a variable and a call to
GetSystemWow64DirectoryW() would help to beautify the code? [*]
Just a thought.

S.

[*]https://stackoverflow.com/questions/23696749/how-to-detect-on-c-is-windows-32-or-64-bit#66882299