Get the correct filepath

BlitzPlus Forums/BlitzPlus Programming/Get the correct filepath

That's a bit weird. You could try passing the original filename to GetLongPathName and if the returned size is less than your buffer size, resize the buffer to the returned size and call again. Then again, if it works, it works...