I have a code that was working for years without problems
It was reading some ini-file using
GetPrivateProfileString and GetPrivateProfileInt functions

Now - I have to change the place of the ini-file
so instead of "./setup.ini"

function now receives a new location like "../WorkDir/ff44198ee855e6aaa8ea845a894e972b/setup.ini"

the current directory is not changed, and file location is also chacked (I open in the explorer the current dir of the process and add to it the above string - as a result the file is opened in textpad)

But the GetPrivateProfileXXX functions all fail returning the default values provided instead of stored in the ini-file

I was trying to apply GetShortPath function before passing the path to GetPrivateProfileXXX

path was transformed correctly but result has not changed

Even stranger - is was working with this paths once, but after last compilation I could not make it work, and I could not retreive any reasonable error code...

Rebuild all does nnot helps.

Have somebody any idea what could be a source of the problem?