From e1045c16a81529163eac159a00321a30355e8aa6 Mon Sep 17 00:00:00 2001 From: Ruediger Hanke Date: Wed, 25 Dec 2002 21:44:59 +0000 Subject: Fix compiler warning and possible hit svn-id: r6150 --- backends/morphos/morphos_sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backends/morphos') diff --git a/backends/morphos/morphos_sound.cpp b/backends/morphos/morphos_sound.cpp index 73f7bea3ae..8ba967c0c6 100644 --- a/backends/morphos/morphos_sound.cpp +++ b/backends/morphos/morphos_sound.cpp @@ -72,7 +72,8 @@ bool init_morphos_music(ULONG MidiUnit, ULONG DevFlags) ScummMidiRequest = NULL; ScummMidiPort = NULL; } - EtudeBase = ScummMidiRequest->emr_Std.io_Device; + else + EtudeBase = ScummMidiRequest->emr_Std.io_Device; } else { @@ -139,7 +140,7 @@ static bool init_morphos_sound() ahiBuf[1] = &ahiBuf[0][AHI_BUF_SIZE]; ahiReq[0]->ahir_Version = 4; - if (ahiDevice = OpenDevice(AHINAME, 0, (IORequest *) ahiReq[0], 0)) + if ((ahiDevice = OpenDevice(AHINAME, 0, (IORequest *) ahiReq[0], 0))) { FreeVec(ahiBuf[0]); FreeVec(ahiReq[1]); -- cgit v1.2.3