[Scummvm-cvs-logs] CVS: scummvm/backends/morphos morphos_sound.cpp,1.5,1.6

Ruediger Hanke tomjoad at users.sourceforge.net
Wed Dec 25 13:46:01 CET 2002


Update of /cvsroot/scummvm/scummvm/backends/morphos
In directory sc8-pr-cvs1:/tmp/cvs-serv19832

Modified Files:
	morphos_sound.cpp 
Log Message:
Fix compiler warning and possible hit

Index: morphos_sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/morphos/morphos_sound.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- morphos_sound.cpp	2 Oct 2002 23:30:37 -0000	1.5
+++ morphos_sound.cpp	25 Dec 2002 21:44:59 -0000	1.6
@@ -72,7 +72,8 @@
 				ScummMidiRequest = NULL;
 				ScummMidiPort = NULL;
 			}
-			EtudeBase = ScummMidiRequest->emr_Std.io_Device;
+			else
+				EtudeBase = ScummMidiRequest->emr_Std.io_Device;
 		}
 		else
 		{
@@ -139,7 +140,7 @@
 	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]);





More information about the Scummvm-git-logs mailing list