Diff for /np2/win9x/oemtext.cpp between versions 1.3 and 1.4

version 1.3, 2005/03/19 20:46:07 version 1.4, 2005/03/20 06:09:16
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   #include        "oemtext.h"
   
 #if defined(OSLANG_UTF8)  #if defined(OSLANG_UTF8)
 UINT oemtext_sjistooem(char *dst, UINT dcnt, const char *src, UINT scnt) {  UINT oemtext_sjistooem(OEMCHAR *dst, UINT dcnt, const char *src, UINT scnt) {
   
         UINT    leng;          UINT    leng;
         UINT16  *ucs2;          UINT16  *ucs2;
Line 23  UINT oemtext_sjistooem(char *dst, UINT d Line 24  UINT oemtext_sjistooem(char *dst, UINT d
         return(ret);          return(ret);
 }  }
   
 UINT oemtext_oemtosjis(char *dst, UINT dcnt, const char *src, UINT scnt) {  UINT oemtext_oemtosjis(char *dst, UINT dcnt, const OEMCHAR *src, UINT scnt) {
   
         UINT    leng;          UINT    leng;
         UINT16  *ucs2;          UINT16  *ucs2;
Line 44  UINT oemtext_oemtosjis(char *dst, UINT d Line 45  UINT oemtext_oemtosjis(char *dst, UINT d
         _MFREE(ucs2);          _MFREE(ucs2);
         return(ret);          return(ret);
 }  }
   #elif defined(OSLANG_UCS2)
   UINT oemtext_sjistooem(OEMCHAR *dst, UINT dcnt, const char *src, UINT scnt) {
   
           return(MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, -1, dst, dcnt));
   }
   
   UINT oemtext_oemtosjis(char *dst, UINT dcnt, const OEMCHAR *src, UINT scnt) {
   
           return(WideCharToMultiByte(CP_ACP, 0, src, -1, dst, dcnt, NULL, NULL));
   }
 #endif  #endif
   

Removed from v.1.3  
changed lines
  Added in v.1.4


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