Commit Graph

139 Commits

Author SHA1 Message Date
Zebediah Figura bf891f34af ntdll: Correctly fill DataTransferLength in SCSI_PASS_THROUGH and SCSI_PASS_THROUGH_DIRECT.
DataTransferLength specifies the number of bytes transferred, but
sg_io_hdr_t.resid gives the number of bytes *not* transferred:
https://www.tldp.org/HOWTO/SCSI-Generic-HOWTO/x356.html

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47424
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 08:00:13 +02:00
Alexandre Julliard 2ae84d5240 Avoid using Windows includes that are already handled in wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:19:00 +01:00
Michael Stefaniuc 10f23ddb58 ntdll: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Seong-ho Cho ca8a08606d configure: Add AC_HEADER_MAJOR to find where major() is defined.
Signed-off-by: Seong-ho Cho <darkcircle.0426@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 18:06:46 +09:00
Alex Henrie fab5ee65b6 ntdll: Return an error from CDROM_Open if fstat fails.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 22:33:22 +09:00
Alex Henrie 48f3bacb0b ntdll: Avoid double initialization.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 22:25:39 +09:00
Erich E. Hoover cdefae9ef2 ntdll: Fix IOCTL_DVD_READ_STRUCTURE expected output size. 2015-06-15 14:50:19 +09:00
Marcus Meissner 33d4125a8f ntdll: Potential buffer overwrite (Coverity). 2015-04-20 14:38:41 +09:00
Francois Gouget ca1545cf17 ntdll: Remove unneeded NONAMELESSXXX directives. 2015-03-16 15:04:50 +09:00
Frédéric Delanoy 86fdca6750 ntdll: Use BOOL type where appropriate. 2013-10-30 09:45:20 +01:00
Alexandre Julliard 90e90e3b6a ntdll: Make the page_size variable global. 2013-01-08 16:35:30 +01:00
Alexandre Julliard aacc450955 ntdll: Avoid using Low/HighPart of a large integer when not necessary. 2012-10-30 18:08:05 +01:00
Michael Stefaniuc 3fa6bd0ced ntdll: IOCTL_DISK_GET_MEDIA_TYPES is the same as IOCTL_STORAGE_GET_MEDIA_TYPES. 2012-09-13 10:21:46 +02:00
Michael Stefaniuc 3454bdc07c ntdll: Always set a valid SUB_Q_HEADER AudioStatus for CD-ROMs. 2012-09-12 12:45:46 +02:00
Alexandre Goujon 5feea8ce1a kernel32/tests: Add a IOCTL_DVD_READ_STRUCTURE (DvdManufacturerDescriptor) test. 2012-07-17 11:55:52 +02:00
Alexandre Goujon 9fce6a37ec kernel32/tests: Add a IOCTL_DVD_READ_STRUCTURE (DvdCopyrightDescriptor) test. 2012-07-12 16:13:49 -05:00
Alexandre Goujon a3b5dd2dff kernel32/tests: Add a IOCTL_DVD_READ_STRUCTURE (DvdPhysicalDescriptor) test. 2012-07-12 16:13:35 -05:00
André Hentschel 4f08dc0a7b ntdll: Check for NetBSD in CDROM_Verify. 2012-06-15 10:30:42 +02:00
André Hentschel a8139f0ba1 ntdll: Enhance FreeBSD checks for cdrom code to also check for DragonFly BSD when appropriate. 2012-06-13 12:10:23 +02:00
Charles Davis 454467dc93 ntdll: Zero reserved fields of the request structure in DVD_ReadDescriptor(). 2012-02-14 17:59:28 +01:00
Dan Kegel 6077b623f2 ntdll: Fix endianness of three fields in DVD_LAYER_DESCRIPTOR. 2012-02-14 17:59:28 +01:00
Austin English 93ed8a062d kernel32: Add support for IOCTL_STORAGE_CHECK_VERIFY2. 2012-02-07 14:03:30 -06:00
Charles Davis f082eac97c ntdll: Implement CDROM_GetInterfaceInfo() on Mac OS. 2011-03-02 12:29:28 +01:00
Charles Davis 03c29bf7f5 ntdll: Fix IOCTL_CDROM_RAW_READ on Mac OS. 2011-02-21 12:44:08 +01:00
Loïc Maury 1b767a5948 ntdll : Implement CDROM_Verify to work on Mac OS X. 2011-01-25 14:47:14 +01:00
Austin English f7c1978548 ntdll: Check for __FreeBSD_kernel__, remove redundant ifdef's, make FIXME's consistent. 2010-08-19 11:30:58 +02:00
Austin English 84179f4e1d ntdll: Add stub implementation of IOCTL_STORAGE_GET_MEDIA_TYPES/IOCTL_STORAGE_GET_MEDIA_TYPES_EX. 2010-05-31 12:46:08 +02:00
Alexandre Julliard d0093f0055 ntdll: Avoid a compiler warning on NetBSD. 2010-05-17 12:42:32 +02:00
Charles Davis 1e0cee6d3c ntdll: Implement IOCTL_SCSI_PASS_THROUGH(_DIRECT) on Mac OS. 2010-05-05 10:46:36 +02:00
Charles Davis e3823e14ce ntdll: Finish implementation of DVD_ReadKey() with key type DvdGetRpcKey on Linux. 2009-10-20 14:53:02 +02:00
Charles Davis ca786887a2 ntdll: Implement DVD_GetRegion() on both Linux and Mac OS. 2009-10-20 14:52:53 +02:00
Charles Davis 816a78b0cf ntdll: Implement CDROM_ScsiGetCaps() on Mac OS. 2009-10-20 14:52:39 +02:00
Charles Davis d22abc20a3 ntdll: Partially implement CDROM_GetControl() on Mac OS.
Only the speed is returned.
2009-10-20 14:49:59 +02:00
Charles Davis 192a838cd0 ntdll: Implement DVD_ReadStructure() on Mac OS. 2009-10-19 15:01:30 +02:00
Charles Davis 71f430e740 ntdll: Implement DVD_ReadKey() on Mac OS. 2009-10-19 15:00:41 +02:00
Charles Davis 7b0ba554ef ntdll: Implement DVD_SendKey() on Mac OS. 2009-10-19 14:59:46 +02:00
Charles Davis df2bf3e3e5 ntdll: Implement DVD_EndSession() on Mac OS. 2009-10-19 14:59:42 +02:00
Charles Davis 05acaeb0f1 ntdll: Implement DVD_StartSession() on Mac OS. 2009-10-19 14:59:33 +02:00
Charles Davis a54ba8712f ntdll: Shorten an ERR message and change it to a FIXME. 2009-10-15 12:06:23 +02:00
Charles Davis 895be2b0f8 ntdll: Use the parent device for everything when processing a storage IOCTL request on Mac OS. 2009-10-15 12:06:22 +02:00
Charles Davis 6368dbbd59 ntdll: Implement CDROM_RawRead() on Mac OS. 2009-10-14 11:46:43 +02:00
Charles Davis c7992a8d26 ntdll: Implement CDROM_ReadQChannel() on Mac OS. 2009-10-13 12:41:30 +02:00
Alexandre Julliard c5dadf4739 ntdll: Define dvd_struct ourselves since it's not consistent across platforms. 2009-04-01 12:37:32 +02:00
Michael Stefaniuc d2f6f56873 ntdll: Remove superfluous pointer casts. 2009-03-23 12:40:53 +01:00
Andrew Talbot a63749cce0 ntdll: Sign-compare warnings fix. 2008-10-24 14:25:00 +02:00
Andrew Talbot 741b65c200 ntdll: Remove unneeded address-of operators from array names. 2008-07-11 14:06:27 +02:00
Andrew Talbot 664349eacc ntdll: Remove unused variables. 2008-04-23 12:23:29 +02:00
Eric Pouech 2bbb39d601 ntdll: Removed conflict for FAILED (defined both in our winerror.h and in linux/scsi.h). 2008-03-05 11:20:10 +01:00
Alexandre Julliard 5b71d645f0 ntdll: Fall back to a server device ioctl for files with no associated fd. 2008-01-16 14:57:20 +01:00
Alexandre Julliard 572771ebfa ntdll: On Mac OS, close the CDROM device before opening the parent.
This is needed to allow ejecting DVD disks.
2007-08-29 16:44:16 +02:00