--- np2/win9x/extromio.cpp 2003/10/22 14:13:25 1.3 +++ np2/win9x/extromio.cpp 2005/02/09 20:11:35 1.6 @@ -1,14 +1,13 @@ #include "compiler.h" +#include "np2.h" #include "dosio.h" #include "extromio.h" -extern HINSTANCE hInst; +static const OEMCHAR str_extrom[] = OEMTEXT("EXTROM"); -static const char str_extrom[] = "EXTROM"; - -EXTROMH extromio_open(const char *filename, UINT type) { +EXTROMH extromio_open(const OEMCHAR *filename, UINT type) { EXTROMH ret; HRSRC hrsrc; @@ -50,7 +49,7 @@ UINT extromio_read(EXTROMH erh, void *bu else if (erh->type == EXTROMIO_RES) { size = min(size, (UINT)(erh->size - erh->pos)); if (size) { - CopyMemory(buf, ((BYTE *)erh->fh) + erh->pos, size); + CopyMemory(buf, ((UINT8 *)erh->fh) + erh->pos, size); erh->pos += size; } return(size);