O_RDONLY==0 but it's cleaner to pass it to DRIVE_OpenDevice() anyway.

This commit is contained in:
Francois Gouget 2003-06-23 19:50:16 +00:00 committed by Alexandre Julliard
parent 1351e23b05
commit 17c035b684

View file

@ -116,7 +116,7 @@ static void INT13_ReadFloppyParams( CONTEXT86 *context )
return;
}
if ( (floppy_fd = DRIVE_OpenDevice( drive_nr, O_NONBLOCK)) == -1)
if ( (floppy_fd = DRIVE_OpenDevice( drive_nr, O_RDONLY|O_NONBLOCK)) == -1)
{
WARN("Can't determine floppy geometry !\n");
INT13_SetStatus( context, 0x07 ); /* drive parameter activity failed */