Hi everyone,
I'm trying to call GetFullPathNameW
winapi function.
It's supposed to do something similar to std::fs::canonicalize
but canonicalize does not work on WinXP/Server 2003 so I'm improvising
Rust Playground (the code does not compile as rust playground is not on windows)
The issue is that I get different result every time I run the compiled code. Even the returned length is different each time , but always greater than expected.
I thought that the winapi might give wrong results so I tested in C++ and that seems to work just fine.
I tried to compile for x86_64 and i686 with both gnu and msvc (with vs2015 and vs2013). Makes no difference.
Do you see anything obviously wrong with the code?