[Bug 29877] New: NtOpenFile can't handle \\Device\\Cdrom0
http://bugs.winehq.org/show_bug.cgi?id=29877 Bug #: 29877 Summary: NtOpenFile can't handle \\Device\\Cdrom0 Product: Wine Version: 1.4-rc2 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs(a)winehq.org ReportedBy: dank(a)kegel.com Classification: Unclassified The following function succeeds on win7, but on wine, it fails and complains fixme:mountmgr:harddisk_ioctl Unsupported ioctl 335140 (device=33 access=1 func=450 method=0) static DWORD openDrive(HANDLE *phdevice) { IO_STATUS_BLOCK io; OBJECT_ATTRIBUTES attr; UNICODE_STRING nt_name; BOOL bRet; static WCHAR szSourceDevice[] = { '\\', 'D', 'e', 'v', 'i', 'c', 'e', '\\', 'C', 'd', 'r', 'o', 'm', '0', 0 }; pRtlInitUnicodeString(&nt_name, szSourceDevice); attr.Length = sizeof(attr); attr.RootDirectory = 0; attr.Attributes = OBJ_CASE_INSENSITIVE; attr.ObjectName = &nt_name; attr.SecurityDescriptor = NULL; attr.SecurityQualityOfService = NULL; return pNtOpenFile(phdevice, FILE_GENERIC_READ, &attr, &io, FILE_SHARE_READ, FILE_NON_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT); } I don't know of any real world apps that need this; I ran into it while writing conformance tests. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29877 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Dan Kegel <dank(a)kegel.com> 2012-02-12 19:16:06 CST --- This looks fishy, please ignore. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29877 --- Comment #2 from Dan Kegel <dank(a)kegel.com> 2012-02-12 23:09:28 CST --- Created attachment 38849 --> http://bugs.winehq.org/attachment.cgi?id=38849 conformance test with one fork that works on both wine and windows, and one that only works on windows For what it's worth, here's the full program. It seems to trigger two wine bugs; I haven't looked closely yet. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29877 --- Comment #3 from Vitaliy Margolen <vitaliy-bugzilla(a)kievinfo.com> 2012-02-13 08:49:55 CST --- There are many symlinks in Windows' object manager that Wine doesn't have. Or ntdll/kernel32 doesn't know how to open. Replicating all of them is a waste of time IMO. Unless we want to put name resolution into wineserver. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29877 --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> 2012-02-13 08:57:05 CST --- We do have the symlinks, and open works just fine. However if you want to do ioctls against the real Unix device you also need a Unix symlink in dosdevices. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29877 --- Comment #5 from Dan Kegel <dank(a)kegel.com> 2012-02-13 11:47:53 CST --- tracing through the code, it looks like wine_nt_to_unix_file_name() would have to change. Right now \\device\\cdrom0 doesn't get mapped to a unix filename at all. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29877 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Summary|NtOpenFile can't handle |Can't do DeviceIoControl on |\\Device\\Cdrom0 |handles opened via | |\\Device\\Cdrom0 Severity|normal |enhancement --- Comment #6 from Dan Kegel <dank(a)kegel.com> 2012-02-13 11:53:14 CST --- Leaving open as an enhancement request even though I don't know of any real apps that need it yet. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=29877 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |INVALID --- Comment #7 from Austin English <austinenglish(a)gmail.com> --- No real app depends on this. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=29877 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Austin English <austinenglish(a)gmail.com> --- Closing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org