Get{Full|Long}PathNameA doesn't seems to be working

Felipe W Damasio (Elipse Software) felipewd at elipse.com.br
Wed Mar 24 14:40:08 CST 2004


	Greetings wine hackers,

	Our company used wine-20030115 for a while now, to be able to run our 
windows product on top of the GNU/Linux OS.

	But since we updated to the latest wine (ie wine-20040309), our path 
conversion is wrong.

	The relevant bit of our .config looks as follows:

[Drive F]
"Path" = "%HOME%"
"Type" = "network"

	Which was automatically generated by wineinstall, btw.

	Anyway, we used to use GetLongPathNameA to get the unix to window name 
conversion right (which was inspired by the winepath program). But in 
this latest version, GetLongPathNameA was replaced by GetFullPathNameA 
(in winepath)..but neither seems to work right.

	Please consider the attached code as an example. It retrieves the home 
directory of the current user, and tries to look up the windows version 
of it. In my case, I got:

Unix format Home Directory: /home/felipewd
GetFullPathNameA returned:  F:\home\felipewd
GetLongPathNameA returned:

	And the expected return was "F:\" in the windows version 
(GetLongPathNameA didn't even returned an entry)...am I right?

	So, if there's any more tests you'd like me to do, or if there's 
anything I can do to help fixing this, please let me know.

	Cheers,

Felipe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: path_conversion.c
Type: text/x-csrc
Size: 619 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040324/94355ab4/path_conversion.c


More information about the wine-devel mailing list