AMIGAOS: Fix CAMD compiler warning

This commit is contained in:
Hubert Maier 2011-04-29 14:05:21 +03:00 committed by Ori Avtalion
parent 5dd3c24238
commit 79b45cf535

View File

@ -137,8 +137,8 @@ void MidiDriver_CAMD::sysEx(const byte *msg, uint16 length) {
char *MidiDriver_CAMD::getDevice() { char *MidiDriver_CAMD::getDevice() {
char *retname = NULL; char *retname = NULL;
APTR key; APTR key = _ICamd->LockCAMD(CD_Linkages);
if (key = _ICamd->LockCAMD(CD_Linkages)) { if (key != NULL) {
struct MidiCluster *cluster = _ICamd->NextCluster(NULL); struct MidiCluster *cluster = _ICamd->NextCluster(NULL);
while (cluster && !retname) { while (cluster && !retname) {