Diff for /np2/win9x/extromio.cpp between versions 1.3 and 1.7

version 1.3, 2003/10/22 14:13:25 version 1.7, 2005/03/20 13:12:49
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   #include        "np2.h"
   #include        "oemtext.h"
 #include        "dosio.h"  #include        "dosio.h"
 #include        "extromio.h"  #include        "extromio.h"
   
   
 extern  HINSTANCE       hInst;  static const TCHAR str_extrom[] = _T("EXTROM");
   
 static const char str_extrom[] = "EXTROM";  
   
   EXTROMH extromio_open(const OEMCHAR *filename, UINT type) {
 EXTROMH extromio_open(const char *filename, UINT type) {  
   
         EXTROMH ret;          EXTROMH ret;
         HRSRC   hrsrc;          HRSRC   hrsrc;
Line 26  EXTROMH extromio_open(const char *filena Line 26  EXTROMH extromio_open(const char *filena
                 }                  }
         }          }
         else if (type == EXTROMIO_RES) {          else if (type == EXTROMIO_RES) {
   #if defined(OSLANG_UTF8)
                   TCHAR tchr[MAX_PATH];
                   oemtotchar(tchr, NELEMENTS(tchr), filename, -1);
                   hrsrc = FindResource(hInst, tchr, str_extrom);
   #else
                 hrsrc = FindResource(hInst, filename, str_extrom);                  hrsrc = FindResource(hInst, filename, str_extrom);
   #endif
                 if (hrsrc) {                  if (hrsrc) {
                         hg = LoadResource(hInst, hrsrc);                          hg = LoadResource(hInst, hrsrc);
                         ret->fh = (void *)LockResource(hg);                          ret->fh = (void *)LockResource(hg);
Line 50  UINT extromio_read(EXTROMH erh, void *bu Line 56  UINT extromio_read(EXTROMH erh, void *bu
                 else if (erh->type == EXTROMIO_RES) {                  else if (erh->type == EXTROMIO_RES) {
                         size = min(size, (UINT)(erh->size - erh->pos));                          size = min(size, (UINT)(erh->size - erh->pos));
                         if (size) {                          if (size) {
                                 CopyMemory(buf, ((BYTE *)erh->fh) + erh->pos, size);                                  CopyMemory(buf, ((UINT8 *)erh->fh) + erh->pos, size);
                                 erh->pos += size;                                  erh->pos += size;
                         }                          }
                         return(size);                          return(size);

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


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