Hi, On Friday 05 April 2002 21:58, Martin Lexa wrote:
- Andreas Mohr (andi@rhlx01.fht-esslingen.de) wrote:
Actually GetFullPathName was known to have some trailing \ issue. So this had to be fixed somehow. It just astonished me a bit to see some code part completely removed instead of a "real" fix. But he said that he can't think of any occasion where it breaks, so it might be ok.
And there is another strange thing... HOMAM III is installed in C:\Program Files\3DO\Heroes3 directory. If I run wine from this directory with HEROES3.EXE as parameter everything works ok, of course, after "fix". However, if I run wine from, for example C:\Program Files\3D0 directory, it gave me error "Unable to initialize resources - ...".
wine --debugmsg +all 'C:\Program Files\3DO\Heroes3\HEROES3.EXE'
[Debug output snipped]
Look at the final path, it's WRONG. It should be 'C:\Program Files\3DO\HEROES3\DATA'. If I run wine from directory 'C:\Program Files' the final path is even worse -> 'C:\Program Files\DATA'. And yes, same happen if try it without my fix - except that last backslash. What's going on here? I don't understand this. Looks like black magic to me ;)
That is understandable. it seems that HoMM3 assumes C:\Program Files\3DO\Heroes3 or wherever it was installed in as current path and wont check that it really is so. the GetFullPathNameA call with the relative path .\DATA\ will of course fail when this assumption isnt true. One solution could be to start the exe in path that it resides in but this might cause problems with other apps and is really not the right thing to do. I would assume that HoMM3 would fail on windows too if called like this, any one who can confirm this?
Enrico farmboy1@subdimension.com