Changeset 3753 for trunk/src/kernel32/winimgres.cpp
- Timestamp:
- Jun 26, 2000, 9:35:56 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimgres.cpp
r3720 r3753 1 /* $Id: winimgres.cpp,v 1.4 0 2000-06-17 09:03:37sandervl Exp $ */1 /* $Id: winimgres.cpp,v 1.41 2000-06-26 07:35:56 sandervl Exp $ */ 2 2 3 3 /* … … 65 65 return NULL; 66 66 67 if(HIWORD(type)) { 68 char *lpszName = (char *)type; 69 //"#102" really means numeric id 102 70 if(lpszName[0] == '#') { 71 type = atoi(&lpszName[1]); 72 } 73 } 74 67 75 if(HIWORD(id) && id != IDLANG_GETFIRST) { 68 76 char *lpszName = (char *)id; … … 308 316 { 309 317 PIMAGE_RESOURCE_DATA_ENTRY pData = NULL; 310 BOOL fNumType;311 318 char *winres = NULL; 312 319 ULONG id, type, lang; 313 320 int i, j, error; 314 321 315 fNumType = TRUE; //assume numeric 322 #ifdef DEBUG 316 323 if(HIWORD(lpszType) != 0) {//string id? 317 324 for(i=0;i<MAX_RES;i++) { … … 319 326 break; 320 327 } 321 //TODO: 322 #if 0 323 if(stricmp((char *)lpszType, BITMAP_TYPENAME2) == 0) { 324 i = (int)RT_BITMAPA; 325 } 328 if(i == MAX_RES) {//custom resource type 329 type = (ULONG)lpszType; 330 } 331 else type = i; 332 } 333 else type = (ULONG)lpszType; 334 #else 335 type = (ULONG)lpszType; 326 336 #endif 327 if(i == MAX_RES) {//custom resource type328 fNumType = FALSE;329 type = (ULONG)lpszType;330 }331 else type = i;332 }333 else type = (ULONG)lpszType;334 337 335 338 switch(langid) {
Note:
See TracChangeset
for help on using the changeset viewer.