[Wine]Application crashes when File->open is clicked

Rein Klazes rklazes at xs4all.nl
Thu Oct 28 06:36:33 CDT 2004


On 28 Oct 2004 16:17:50 +0530, you wrote:

> Hello,
> > > I guess, the reason for the bug is with the config file. 
> > 
> > No, it is a known bug that exists already far too long. With your help
> >I like to create a fix for it.
> 
> But, how it happens that In a same system old wines works but the new
> ones does not.

That is called a regression, happens all the time. Could be caused by a
new function that was not there before, but crashes on your disk.

> 
> In the case of Latest Wine, when I remove all sym-links from the
> dosdevices directory, except the "c", then it works.

Then c: is not the problem.
 
> > The problem lies in determine what exactly the file system is on one
> of
> > your simulated drives, this is supposedly a FAT file system (FAT12,
> > FAT16, FAT32).
> > 
> > First determine what drive this is. If you are not sure, run wine
> like:
> > 
> > WINEDEBUG=+file wine ...
> > 
> > and make it crash. There should be a line with CreateFileW just before
> > the crash, the name of the device in the form "\\\\C:\\". 
> >
> > Then assuming it is drive C:, and your ~/.wine/dosdrives/c: points to
> > the mount point of a mounted file system, lets say /dev/hda1.
> 
> I got the following before the crash. (My C drive is pointing to 
> ../drive_c)
> ----
> trace:file:CreateFileW returning 0x44
> trace:file:CreateFileW L"c:\\windows\\win.ini" GENERIC_READ
> FILE_SHARE_READ OPEN_EXISTING attributes 0x80
> trace:file:RtlDosPathNameToNtPathName_U
> (L"c:\\windows\\win.ini",0x4074cdcc,(nil),(nil))
> trace:file:RtlGetFullPathName_U (L"c:\\windows\\win.ini" 520 0x4074cb48
> (nil))
> trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\windows\\win.ini" ->
> "/root/.wine/dosdevices/c:/windows/win.ini"
> trace:file:CreateFileW returning 0x44
> ----

You need the last CreateFile before the crash ("starting debugger") and
is must look like CreateFileW(L"\\\\x:\\


> 
> Here what should i give as argument to `if=`.

You will need to find that CreateFileW first.

Rein.
-- 
Rein Klazes
rklazes at xs4all.nl



More information about the wine-users mailing list