Diff for /np2/win9x/extromio.cpp between versions 1.6 and 1.8

version 1.6, 2005/02/09 20:11:35 version 1.8, 2007/11/11 07:11:26
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "np2.h"  #include        "np2.h"
   #include        "oemtext.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "extromio.h"  #include        "extromio.h"
   
   
 static const OEMCHAR str_extrom[] = OEMTEXT("EXTROM");  static const TCHAR str_extrom[] = _T("EXTROM");
   
   
 EXTROMH extromio_open(const OEMCHAR *filename, UINT type) {  EXTROMH extromio_open(const OEMCHAR *filename, UINT type) {
Line 25  EXTROMH extromio_open(const OEMCHAR *fil Line 26  EXTROMH extromio_open(const OEMCHAR *fil
                 }                  }
         }          }
         else if (type == EXTROMIO_RES) {          else if (type == EXTROMIO_RES) {
                 hrsrc = FindResource(hInst, filename, str_extrom);  #if defined(OSLANG_UTF8)
                   TCHAR tchr[MAX_PATH];
                   oemtotchar(tchr, NELEMENTS(tchr), filename, -1);
                   hrsrc = FindResource(g_hInstance, tchr, str_extrom);
   #else
                   hrsrc = FindResource(g_hInstance, filename, str_extrom);
   #endif
                 if (hrsrc) {                  if (hrsrc) {
                         hg = LoadResource(hInst, hrsrc);                          hg = LoadResource(g_hInstance, hrsrc);
                         ret->fh = (void *)LockResource(hg);                          ret->fh = (void *)LockResource(hg);
                         ret->pos = 0;                          ret->pos = 0;
                         ret->size = SizeofResource(hInst, hrsrc);                          ret->size = SizeofResource(g_hInstance, hrsrc);
                         return(ret);                          return(ret);
                 }                  }
         }          }

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


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