[Bug 29877] New: NtOpenFile can't handle \\Device\\Cdrom0
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Feb 12 16:02:36 CST 2012
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 at winehq.org
ReportedBy: dank at 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.
More information about the wine-bugs
mailing list