[PATCH] HOMAM III fix
Andreas Mohr
andi at rhlx01.fht-esslingen.de
Fri Apr 5 11:06:38 CST 2002
On Fri, Apr 05, 2002 at 06:46:27PM +0200, Martin Lexa wrote:
> Hello!
>
> Function CreateFileA get this file path (just for example):
>
> C:\\Program Files\\3DO\\Heroes3\\DATAh3bitmap.lod
>
> As you can see the correct path should be:
>
> C:\\Program Files\\3DO\\Heroes3\\DATA\\h3bitmap.lod
>
> This lead to error message "Can't initialize resources.Possible disk
> problem."
>
> I see the problem in the function DOSFS_DoGetFullPathName(), which in the
> end removes the ending backslash from the path. The attached patch fixes it.
>
> Bye, Martin
> Index: dos_fs.c
> ===================================================================
> RCS file: /home/wine/wine/files/dos_fs.c,v
> retrieving revision 1.103
> diff -u -u -r1.103 dos_fs.c
> --- dos_fs.c 2 Apr 2002 02:46:27 -0000 1.103
> +++ dos_fs.c 5 Apr 2002 16:24:19 -0000
> @@ -1341,9 +1341,6 @@
> }
> if (full_name.short_name[namelen-1]=='.')
> full_name.short_name[(namelen--)-1] =0;
> - if (!driveletter)
> - if (full_name.short_name[namelen-1]=='\\')
> - full_name.short_name[(namelen--)-1] =0;
> TRACE("got %s\n",full_name.short_name);
>
> /* If the lpBuffer buffer is too small, the return value is the
Yep, that might fix *your* problem, but don't you think that code snippet
might have been there for a purpose ?
Are you sure that simply completely removing code doesn't break anything
here in other cases ?
--
Andreas Mohr Stauferstr. 6, D-71272 Renningen, Germany
Tel. +49 7159 800604 http://home.arcor.de/andi.mohr/
More information about the wine-devel
mailing list