compiled with:
Code: Select all
wchar_t modulePath[MAX_PATH];
GetModuleFileName(NULL, modulePath, MAX_PATH);
MessageBox(0, modulePath, 0, 0);
If I run d:\test2\file.exe from cmd I get same path d:\test2\file.exe
instead if I run same file from TotalCommander internal association I get c:\test\file.exe
Do it is a bug?