From 8ec45b8865841b3ff84b2e296c75720a871f3948 Mon Sep 17 00:00:00 2001 From: arbee Date: Sun, 12 May 2019 20:46:59 -0400 Subject: Omitting braces style is the devil (nw) --- src/devices/machine/nscsi_cd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/devices/machine/nscsi_cd.cpp b/src/devices/machine/nscsi_cd.cpp index 8d8a766e131..ebfa49f1cae 100644 --- a/src/devices/machine/nscsi_cd.cpp +++ b/src/devices/machine/nscsi_cd.cpp @@ -642,10 +642,14 @@ void nscsi_cdrom_apple_device::scsi_command() case SC_TEST_UNIT_READY: LOG("command TEST UNIT READY (AppleCD)\n"); if(cdrom) + { scsi_status_complete(SS_GOOD); + } else + { sense(false, SK_NOT_READY, 0xb0); scsi_status_complete(SS_CHECK_CONDITION); + } break; default: -- cgit v1.2.3