kernel32: Always read a full block from the CD-ROM to avoid problems on raw devices.
This commit is contained in:
parent
104e1cf6dd
commit
e60a52e74a
|
@ -222,7 +222,7 @@ static UINT get_registry_drive_type( const WCHAR *root )
|
||||||
static DWORD VOLUME_FindCdRomDataBestVoldesc( HANDLE handle )
|
static DWORD VOLUME_FindCdRomDataBestVoldesc( HANDLE handle )
|
||||||
{
|
{
|
||||||
BYTE cur_vd_type, max_vd_type = 0;
|
BYTE cur_vd_type, max_vd_type = 0;
|
||||||
BYTE buffer[16];
|
BYTE buffer[0x800];
|
||||||
DWORD size, offs, best_offs = 0, extra_offs = 0;
|
DWORD size, offs, best_offs = 0, extra_offs = 0;
|
||||||
|
|
||||||
for (offs = 0x8000; offs <= 0x9800; offs += 0x800)
|
for (offs = 0x8000; offs <= 0x9800; offs += 0x800)
|
||||||
|
|
Loading…
Reference in New Issue