--- np2/win9x/debuguty/viewsnd.cpp 2005/02/09 20:11:36 1.6 +++ np2/win9x/debuguty/viewsnd.cpp 2005/03/20 13:12:49 1.8 @@ -2,6 +2,7 @@ #include "strres.h" #include "resource.h" #include "np2.h" +#include "oemtext.h" #include "viewer.h" #include "viewcmn.h" #include "viewmenu.h" @@ -13,13 +14,13 @@ typedef struct { -const OEMCHAR *str; - UINT16 reg; - UINT16 mask; +const TCHAR *str; + UINT16 reg; + UINT16 mask; } FMSNDTBL; static const FMSNDTBL fmsndtbl[] = { - {OEMTEXT("Sound-Board I"), 0, 0}, + {_T("Sound-Board I"), 0, 0}, {NULL, 0x0000, 0xffff}, {NULL, 0x0010, 0x3f07}, {NULL, 0x0020, 0x07e6}, @@ -32,7 +33,7 @@ static const FMSNDTBL fmsndtbl[] = { {NULL, 0x0090, 0x7777}, {NULL, 0x00a0, 0x7777}, {NULL, 0x00b0, 0x0077}, - {str_null, 0, 0}, + {tchar_null, 0, 0}, {NULL, 0x0100, 0xffff}, {NULL, 0x0110, 0x0001}, {NULL, 0x0130, 0x7777}, @@ -44,8 +45,8 @@ static const FMSNDTBL fmsndtbl[] = { {NULL, 0x0190, 0x7777}, {NULL, 0x01a0, 0x7777}, {NULL, 0x01b0, 0x0077}, - {str_null, 0, 0}, - {OEMTEXT("Sound-Board II"), 0, 0}, + {tchar_null, 0, 0}, + {_T("Sound-Board II"), 0, 0}, {NULL, 0x0200, 0xffff}, {NULL, 0x0220, 0x07e6}, {NULL, 0x0230, 0x7777}, @@ -57,7 +58,7 @@ static const FMSNDTBL fmsndtbl[] = { {NULL, 0x0290, 0x7777}, {NULL, 0x02a0, 0x7777}, {NULL, 0x02b0, 0x0077}, - {str_null, 0, 0}, + {tchar_null, 0, 0}, {NULL, 0x0230, 0x7777}, {NULL, 0x0240, 0x7777}, {NULL, 0x0250, 0x7777}, @@ -75,7 +76,7 @@ static void viewsnd_paint(NP2VIEW_T *vie LONG y; UINT pos; const UINT8 *p; - OEMCHAR str[16]; + TCHAR str[16]; HFONT hfont; UINT reg; UINT16 mask; @@ -107,13 +108,13 @@ const UINT8 *p; for (y=0; (ybottom) && (poslock) {