Changeset 752 for trunk/src/kernel32/winres.cpp
- Timestamp:
- Aug 31, 1999, 4:36:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winres.cpp
r611 r752 1 /* $Id: winres.cpp,v 1.1 2 1999-08-21 19:11:56 sandervl Exp $ */1 /* $Id: winres.cpp,v 1.13 1999-08-31 14:36:46 sandervl Exp $ */ 2 2 3 3 /* … … 31 31 #include <winexe.h> 32 32 #include "cvtresource.h" 33 #include <vmutex.h> 34 35 VMutex resmutex; 33 36 34 37 //****************************************************************************** … … 86 89 //****************************************************************************** 87 90 //****************************************************************************** 91 Win32Resource::Win32Resource() : 92 os2resdata(NULL), winresdata(NULL), resType(RSRC_CUSTOMNODATA) 93 { 94 resmutex.enter(); 95 next = module->winres; 96 module->winres = this; 97 resmutex.leave(); 98 99 module = NULL; 100 id = -1; 101 type = -1; 102 hres = 0; 103 orgos2type = -1; 104 OS2ResHandle = 0; 105 } 106 //****************************************************************************** 107 //****************************************************************************** 88 108 Win32Resource::Win32Resource(Win32Image *module, HRSRC hRes, ULONG id, ULONG type) : 89 109 os2resdata(NULL), winresdata(NULL), resType(RSRC_PE2LX) … … 91 111 APIRET rc; 92 112 113 resmutex.enter(); 93 114 next = module->winres; 94 115 module->winres = this; 116 resmutex.leave(); 95 117 96 118 this->module = module; … … 145 167 os2resdata(NULL), winresdata(NULL), resType(RSRC_PELOADER) 146 168 { 169 resmutex.enter(); 147 170 next = module->winres; 148 171 module->winres = this; 172 resmutex.leave(); 149 173 150 174 this->module = module; … … 178 202 if(winresdata) free(winresdata); 179 203 204 resmutex.enter(); 180 205 if(res == this) { 181 206 module->winres = res->next; … … 188 213 res->next = next; 189 214 } 215 resmutex.leave(); 190 216 } 191 217 //****************************************************************************** … … 285 311 dprintf(("Win32Resource::lockOS2Resource %d\n", id)); 286 312 if(os2resdata == NULL) { 287 if(resType == RSRC_PELOADER ) {313 if(resType == RSRC_PELOADER || resType == RSRC_CUSTOMINDIRECT) { 288 314 os2resdata = convertResource(winresdata); 289 315 }
Note:
See TracChangeset
for help on using the changeset viewer.