http://bugs.winehq.org/show_bug.cgi?id=6301
Summary: kernel32:Simple MSDN sample does not work. Product: Wine Version: CVS Platform: Other OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: xerox_xerox2000@yahoo.co.uk
Hi, the simple sample from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/g... (end of the page) does not work for me in wine.
The output on wine is:
The full path name for the file test.txt is: C:\testfile.txt The short path name for the directory c:\longdirectoryname is: c:\LONG~TX4 GetLongPathName failed with error 2.
On windows you get:
The full path name for the file test.txt is: C:\testfile.txt The short path name for the directory c:\longdirectoryname is: c:\LONGDI~1 The long path name for the directory c:\longdirectoryname is: c:\longdirectoryname
I was not able to compile the sample with i386-mingw-gcc, because the linker complained that _GetLongPathName could not be found, which is another strange thing. So i compiled it on windows, and i'll attach executable hereafter.
There's also another bug in GetLongPathNameW, but i'll file separate bug for that.