--- Frodo4/Src/1541t64.cpp 2004/01/11 00:09:51 1.3 +++ Frodo4/Src/1541t64.cpp 2004/01/12 15:13:20 1.5 @@ -1,7 +1,7 @@ /* * 1541t64.cpp - 1541 emulation in .t64/LYNX file * - * Frodo (C) 1994-1997,2002-2003 Christian Bauer + * Frodo (C) 1994-1997,2002-2004 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -525,15 +525,15 @@ void T64Drive::close_all_channels(void) * Read from channel */ -uint8 T64Drive::Read(int channel, uint8 *byte) +uint8 T64Drive::Read(int channel, uint8 &byte) { int c; // Channel 15: Error channel if (channel == 15) { - *byte = *error_ptr++; + byte = *error_ptr++; - if (*byte != '\r') + if (byte != '\r') return ST_OK; else { // End of message set_error(ERR_OK); @@ -544,7 +544,7 @@ uint8 T64Drive::Read(int channel, uint8 if (!file[channel]) return ST_READ_TIMEOUT; // Get char from buffer and read next - *byte = read_char[channel]; + byte = read_char[channel]; c = fgetc(file[channel]); if (c == EOF) return ST_EOF;