Diff for /np2/wince/np2.cpp between versions 1.23 and 1.24

version 1.23, 2005/03/24 04:40:33 version 1.24, 2005/04/01 15:35:50
Line 5 Line 5
 #endif  #endif
 #include        "resource.h"  #include        "resource.h"
 #include        "strres.h"  #include        "strres.h"
 #if defined(UNICODE) && defined(OSLANG_UTF8)  
 #include        "codecnv.h"  
 #endif  
 #include        "np2.h"  #include        "np2.h"
   #include        "oemtext.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "commng.h"  #include        "commng.h"
 #include        "inputmng.h"  #include        "inputmng.h"
Line 311  static void processwait(UINT cnt) { Line 309  static void processwait(UINT cnt) {
   
 // ----  // ----
   
 #if defined(UNICODE) && defined(OSLANG_SJIS)  
 static DWORD _GetModuleFileName(HMODULE hModule,  
                                                                                 OEMCHAR *lpFileName, DWORD nSize) {  
   
         UINT16  ucs2[MAX_PATH];  
   
         GetModuleFileName(hModule, ucs2, NELEMENTS(ucs2));  
         nSize = WideCharToMultiByte(CP_ACP, 0, ucs2, -1,  
                                                                                 lpFileName, nSize, NULL, NULL);  
         if (nSize) {  
                 nSize--;  
         }  
         return(nSize);  
 }  
 #elif defined(UNICODE) && defined(OSLANG_UTF8)  
 static DWORD _GetModuleFileName(HMODULE hModule,  
                                                                                 OEMCHAR *lpFileName, DWORD nSize) {  
   
         UINT16  ucs2[MAX_PATH];  
   
         GetModuleFileName(hModule, ucs2, NELEMENTS(ucs2));  
         nSize = codecnv_ucs2toutf8(lpFileName, nSize, ucs2, (UINT)-1);  
         if (nSize) {  
                 nSize--;  
         }  
         return(nSize);  
 }  
 #else  
 #define _GetModuleFileName(a, b, c)             GetModuleFileName(a, b, c)  
 #endif  
   
   
 #if defined(_WIN32_WCE)  #if defined(_WIN32_WCE)
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,  int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,
                                                                                 LPWSTR lpszCmdLine, int nCmdShow)                                                                                  LPWSTR lpszCmdLine, int nCmdShow)
Line 371  int WINAPI WinMain(HINSTANCE hInstance,  Line 337  int WINAPI WinMain(HINSTANCE hInstance, 
                 return(0);                  return(0);
         }          }
   
         _GetModuleFileName(NULL, modulefile, NELEMENTS(modulefile));  #if defined(OEMCHAR_SAME_TCHAR)
           GetModuleFileName(NULL, modulefile, NELEMENTS(modulefile));
   #else
           TCHAR _modulefile[MAX_PATH];
           GetModuleFileName(NULL, _modulefile, NELEMENTS(_modulefile));
           tchartooem(modulefile, NELEMENTS(modulefile), _modulefile, (UINT)-1);
   #endif
         dosio_init();          dosio_init();
         file_setcd(modulefile);          file_setcd(modulefile);
         initload();          initload();

Removed from v.1.23  
changed lines
  Added in v.1.24


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