Ignore:
Timestamp:
Aug 10, 1999, 12:55:11 AM (26 years ago)
Author:
phaller
Message:

Fix: ODINCRT support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimgres.cpp

    r163 r464  
    1 /* $Id: winimgres.cpp,v 1.4 1999-06-23 19:36:24 phaller Exp $ */
     1/* $Id: winimgres.cpp,v 1.5 1999-08-09 22:55:11 phaller Exp $ */
    22
    33/*
     
    1616#include <stdlib.h>
    1717#include <string.h>
     18#include <odincrt.h>
     19
    1820#include "misc.h"
    1921#include "nameid.h"
     
    159161        unicodestr += *unicodestr;
    160162    }
     163    ODIN_FS_BEGIN
    161164    res = new Win32Resource(this, id, NTRT_STRING, (ULONG)*unicodestr, (char *)unicodestr);
     165    ODIN_FS_END
    162166    if(res == NULL) {
    163167        dprintf(("new Win32Resource failed!\n"));
     
    165169    }
    166170  }
    167   else  res = new Win32Resource(this, id, type, pData->Size, resdata);
     171  else
     172    ODIN_FS_BEGIN
     173    res = new Win32Resource(this, id, type, pData->Size, resdata);
     174    ODIN_FS_END
    168175
    169176  return res;
     
    298305
    299306    hres = O32_FindResource(hinstance, lpszName, szType);
    300     if(hres) {
     307    if(hres)
     308    {
     309      ODIN_FS_BEGIN
    301310      res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     311      ODIN_FS_END
    302312    }
    303313
    304314    if(hres == NULL && (int)lpszName >> 16 == 0 && (int)szType == NTRT_STRING) {
    305315      hres = O32_FindResource(hinstance, (LPCSTR)(((int)lpszName - 1)*16), (LPCSTR)NTRT_RCDATA);
    306       if(hres) {
     316      if(hres)
     317      {
     318         ODIN_FS_BEGIN
    307319         res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     320         ODIN_FS_END
    308321      }
    309322      else    dprintf(("FindResourceA can't find string %d\n", (int)lpszName));
     
    393406
    394407    hres = O32_FindResource(hinstance, (LPCSTR)lpszName, (LPCSTR)szType);
    395     if(hres) {
     408    if(hres)
     409    {
     410      ODIN_FS_BEGIN
    396411      res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     412      ODIN_FS_END
    397413    }
    398414
    399415    if(hres == NULL && (int)lpszName >> 16 == 0 && (int)szType == NTRT_STRING) {
    400416      hres = O32_FindResource(hinstance, (LPCSTR)(((ULONG)lpszName - 1)*16), (LPCSTR)NTRT_RCDATA);
    401       if(hres) {
    402          res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     417      if(hres)
     418      {
     419        ODIN_FS_BEGIN
     420        res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     421        ODIN_FS_END
    403422      }
    404423      else    dprintf(("FindResourceW can't find string %d\n", (int)lpszName));
Note: See TracChangeset for help on using the changeset viewer.