--- np2/common/wavefile.c 2003/11/28 08:01:32 1.2 +++ np2/common/wavefile.c 2005/02/07 14:46:08 1.4 @@ -3,7 +3,6 @@ #include "wavefile.h" - static BOOL headwrite(WAVEWR hdl) { RIFF_HEADER rif; @@ -120,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) {