Ignore:
Timestamp:
Aug 31, 1999, 7:15:53 PM (26 years ago)
Author:
sandervl
Message:

Menu resource changes

File:
1 edited

Legend:

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

    r752 r761  
    1 /* $Id: winres.cpp,v 1.13 1999-08-31 14:36:46 sandervl Exp $ */
     1/* $Id: winres.cpp,v 1.14 1999-08-31 17:15:30 sandervl Exp $ */
    22
    33/*
     
    103103  orgos2type = -1;
    104104  OS2ResHandle = 0;
     105  //resources are in Unicode format by default; indirectly created resources
     106  //can also be in ascii format
     107  isUnicode  = TRUE;
    105108}
    106109//******************************************************************************
     
    160163    ressize = 0;
    161164  }
     165  //resources are in Unicode format by default
     166  isUnicode  = TRUE;
    162167}
    163168//******************************************************************************
     
    189194  }
    190195  else  memcpy(winresdata, resdata, size);
     196
     197  //resources are in Unicode format by default
     198  isUnicode  = TRUE;
    191199}
    192200//******************************************************************************
     
    197205
    198206  //returned by DosGetResource, so we don't (and mustn't) free it
    199   if(os2resdata && resType == RSRC_PELOADER)   
     207  if(os2resdata && (resType == RSRC_PELOADER || resType == RSRC_CUSTOMINDIRECT))
    200208        free(os2resdata);
    201209
     
    350358    case NTRT_NEWMENU:
    351359    case NTRT_MENU:
    352         return ConvertMenu((MenuHeader *)win32res, ressize);
     360        return ConvertMenu((MenuHeader *)win32res, ressize, isUnicode);
    353361
    354362    case NTRT_NEWDIALOG:
Note: See TracChangeset for help on using the changeset viewer.