From 17c035b684b0fcad4bd2b101a10fc43ff8e38a8e Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 23 Jun 2003 19:50:16 +0000 Subject: [PATCH] O_RDONLY==0 but it's cleaner to pass it to DRIVE_OpenDevice() anyway. --- dlls/winedos/int13.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winedos/int13.c b/dlls/winedos/int13.c index fa0968d6f5e..0fa5416da44 100644 --- a/dlls/winedos/int13.c +++ b/dlls/winedos/int13.c @@ -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 */