[Bug 18161] unintialized variables in dlls/ntdll/cdrom.c on NetBSD 5.0
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Oct 12 14:36:29 CDT 2009
http://bugs.winehq.org/show_bug.cgi?id=18161
--- Comment #3 from Nikolay Sivov <bunglehead at gmail.com> 2009-10-12 14:36:29 ---
This should be fixed at CDROM_GetInterfaceInfo().
Uninitialized value only come out if
---
switch (addr.type)
{
case TYPE_SCSI: *port = 1;
*iface = addr.addr.scsi.scbus;
*device = addr.addr.scsi.target;
*lun = addr.addr.scsi.lun;
break;
case TYPE_ATAPI: *port = 0;
*iface = addr.addr.atapi.atbus;
*device = addr.addr.atapi.drive;
*lun = 0;
break;
}
return 1;
---
we got some third value (not TYPE_SCSI, not TYPE_ATAPI). Otherwise you
shouldn't care.
--
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