--- np2/common/wavefile.c 2004/06/21 02:01:32 1.3 +++ np2/common/wavefile.c 2005/02/09 20:11:34 1.5 @@ -3,7 +3,7 @@ #include "wavefile.h" -static BOOL headwrite(WAVEWR hdl) { +static BRESULT headwrite(WAVEWR hdl) { RIFF_HEADER rif; WAVE_HEADER hdr; @@ -62,7 +62,7 @@ static void dataflash(WAVEWR hdl) { // ---- -WAVEWR wavewr_open(const char *filename, UINT rate, UINT bits, UINT ch) { +WAVEWR wavewr_open(const OEMCHAR *filename, UINT rate, UINT bits, UINT ch) { FILEH fh; WAVEWR ret; @@ -119,7 +119,7 @@ UINT wavewr_write(WAVEWR hdl, const void wr = min(hdl->remain, size); CopyMemory(hdl->ptr, buf, wr); size -= wr; - buf = ((BYTE *)buf) + wr; + buf = ((UINT8 *)buf) + wr; hdl->ptr += wr; hdl->remain -= wr; if (!hdl->remain) {