Diff for /np2/win9x/oemtext.cpp between versions 1.6 and 1.7

version 1.6, 2005/04/01 15:35:49 version 1.7, 2005/05/15 18:26:47
Line 33  UINT oemtext_sjistoucs2(UINT16 *dst, UIN Line 33  UINT oemtext_sjistoucs2(UINT16 *dst, UIN
         else {          else {
                 dstcnt = 0;                  dstcnt = 0;
         }          }
         r = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, srccnt, dst, dstcnt);          r = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, srccnt, (WCHAR *)dst, dstcnt);
         if ((r == 0) && (dstcnt != 0)) {          if ((r == 0) && (dstcnt != 0)) {
                 r = dstcnt;                  r = dstcnt;
                 if (srccnt < 0) {                  if (srccnt < 0) {
Line 73  UINT oemtext_ucs2tosjis(char *dst, UINT  Line 73  UINT oemtext_ucs2tosjis(char *dst, UINT 
         else {          else {
                 dstcnt = 0;                  dstcnt = 0;
         }          }
         r = WideCharToMultiByte(CP_ACP, 0, src, srccnt, dst, dstcnt, NULL, NULL);          r = WideCharToMultiByte(CP_ACP, 0, (WCHAR *)src, srccnt, dst, dstcnt, NULL, NULL);
         if ((r == 0) && (dstcnt != 0)) {          if ((r == 0) && (dstcnt != 0)) {
                 r = dstcnt;                  r = dstcnt;
                 if (srccnt < 0) {                  if (srccnt < 0) {
Line 102  UINT oemtext_sjistoutf8(char *dst, UINT  Line 102  UINT oemtext_sjistoutf8(char *dst, UINT 
         if (ucs2 == NULL) {          if (ucs2 == NULL) {
                 return(0);                  return(0);
         }          }
         MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, scnt, ucs2, leng);          MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, scnt, (WCHAR *)ucs2, leng);
         if (((SINT)scnt) < 0) {          if (((SINT)scnt) < 0) {
                 leng = (UINT)-1;                  leng = (UINT)-1;
         }          }
Line 131  UINT oemtext_utf8tosjis(char *dst, UINT  Line 131  UINT oemtext_utf8tosjis(char *dst, UINT 
         if (((SINT)scnt) < 0) {          if (((SINT)scnt) < 0) {
                 leng = (UINT)-1;                  leng = (UINT)-1;
         }          }
         ret = WideCharToMultiByte(CP_ACP, 0, ucs2, leng, dst, dcnt, NULL, NULL);          ret = WideCharToMultiByte(CP_ACP, 0, (WCHAR *)ucs2, leng, dst, dcnt, NULL, NULL);
         _MFREE(ucs2);          _MFREE(ucs2);
         return(ret);          return(ret);
 }  }

Removed from v.1.6  
changed lines
  Added in v.1.7


RetroPC.NET-CVS <cvs@retropc.net>