[PATCH] HOMAM III fix
Martin Lexa
mlexa at iol.cz
Fri Apr 5 10:46:27 CST 2002
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
-------------- next part --------------
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
More information about the wine-devel
mailing list