Changeset 761 for trunk/src/kernel32/winres.cpp
- Timestamp:
- Aug 31, 1999, 7:15:53 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winres.cpp
r752 r761 1 /* $Id: winres.cpp,v 1.1 3 1999-08-31 14:36:46sandervl Exp $ */1 /* $Id: winres.cpp,v 1.14 1999-08-31 17:15:30 sandervl Exp $ */ 2 2 3 3 /* … … 103 103 orgos2type = -1; 104 104 OS2ResHandle = 0; 105 //resources are in Unicode format by default; indirectly created resources 106 //can also be in ascii format 107 isUnicode = TRUE; 105 108 } 106 109 //****************************************************************************** … … 160 163 ressize = 0; 161 164 } 165 //resources are in Unicode format by default 166 isUnicode = TRUE; 162 167 } 163 168 //****************************************************************************** … … 189 194 } 190 195 else memcpy(winresdata, resdata, size); 196 197 //resources are in Unicode format by default 198 isUnicode = TRUE; 191 199 } 192 200 //****************************************************************************** … … 197 205 198 206 //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)) 200 208 free(os2resdata); 201 209 … … 350 358 case NTRT_NEWMENU: 351 359 case NTRT_MENU: 352 return ConvertMenu((MenuHeader *)win32res, ressize );360 return ConvertMenu((MenuHeader *)win32res, ressize, isUnicode); 353 361 354 362 case NTRT_NEWDIALOG:
Note:
See TracChangeset
for help on using the changeset viewer.