Commit e60a52e7 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Always read a full block from the CD-ROM to avoid problems on raw devices.

parent 104e1cf6
...@@ -222,7 +222,7 @@ static UINT get_registry_drive_type( const WCHAR *root ) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment