--- np2/win9x/dosio.cpp 2005/04/01 15:35:49 1.13 +++ np2/win9x/dosio.cpp 2007/01/08 08:52:21 1.14 @@ -193,37 +193,43 @@ void DOSIOCALL file_setcd(const OEMCHAR OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { - file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); + file_cpyname(curfilep, path, + NELEMENTS(curpath) - (int)(curfilep - curpath)); return(curpath); } FILEH DOSIOCALL file_open_c(const OEMCHAR *path) { - file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); + file_cpyname(curfilep, path, + NELEMENTS(curpath) - (int)(curfilep - curpath)); return(file_open(curpath)); } FILEH DOSIOCALL file_open_rb_c(const OEMCHAR *path) { - file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); + file_cpyname(curfilep, path, + NELEMENTS(curpath) - (int)(curfilep - curpath)); return(file_open_rb(curpath)); } FILEH DOSIOCALL file_create_c(const OEMCHAR *path) { - file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); + file_cpyname(curfilep, path, + NELEMENTS(curpath) - (int)(curfilep - curpath)); return(file_create(curpath)); } short DOSIOCALL file_delete_c(const OEMCHAR *path) { - file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); + file_cpyname(curfilep, path, + NELEMENTS(curpath) - (int)(curfilep - curpath)); return(file_delete(curpath)); } short DOSIOCALL file_attr_c(const OEMCHAR *path) { - file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); + file_cpyname(curfilep, path, + NELEMENTS(curpath) - (int)(curfilep - curpath)); return(file_attr(curpath)); }