--- np2/embed/menu/dlgabout.c 2003/11/21 06:51:10 1.1 +++ np2/embed/menu/dlgabout.c 2005/02/11 21:17:22 1.5 @@ -1,5 +1,6 @@ #include "compiler.h" #include "strres.h" +#include "np2ver.h" #include "pccore.h" #include "vramhdl.h" #include "menubase.h" @@ -35,12 +36,18 @@ static const MENUPRM res_about[] = { static void dlginit(void) { - char work[128]; + OEMCHAR work[128]; - menudlg_appends(res_about, sizeof(res_about)/sizeof(MENUPRM)); - milstr_ncpy(work, str_np2, sizeof(work)); - milstr_ncat(work, str_space, sizeof(work)); - milstr_ncat(work, np2version, sizeof(work)); + menudlg_appends(res_about, NELEMENTS(res_about)); + milstr_ncpy(work, str_np2, NELEMENTS(work)); + milstr_ncat(work, str_space, NELEMENTS(work)); + milstr_ncat(work, np2version, NELEMENTS(work)); +#if defined(_WIN32_WCE) && defined(NP2VER_WINCE) + milstr_ncat(work, OEMTEXT(NP2VER_WINCE), NELEMENTS(work)); +#endif +#if defined(NP2VER_SDL) + milstr_ncat(work, OEMTEXT(NP2VER_SDL), NELEMENTS(work)); +#endif menudlg_settext(DID_VER, work); }