diff --git a/src/platform_os2.c b/src/platform_os2.c index 30444cb..1060d04 100644 --- a/src/platform_os2.c +++ b/src/platform_os2.c @@ -178,15 +178,15 @@ static int is_cdrom_drive(ULONG drive) APIRET rc; HFILE hfile = NULLHANDLE; unsigned char drivename[3] = { 0, ':', '\0' }; - - drivename[0] = 'A' + drive; - + + drivename[0] = 'A' + drive; + rc = DosOpen(drivename, &hfile, &ul1, 0, 0, OPEN_ACTION_OPEN_IF_EXISTS | OPEN_ACTION_FAIL_IF_NEW, OPEN_FLAGS_DASD | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NOINHERIT | OPEN_SHARE_DENYNONE, NULL); - if (rc != NO_ERROR) - return 0; + if (rc != NO_ERROR) + return 0; data = 0; param = PHYSFS_swapULE32(CD01);