Changeset 752 for trunk/src/kernel32/winimgres.cpp
- Timestamp:
- Aug 31, 1999, 4:36:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimgres.cpp
r634 r752 1 /* $Id: winimgres.cpp,v 1.1 2 1999-08-22 22:11:22sandervl Exp $ */1 /* $Id: winimgres.cpp,v 1.13 1999-08-31 14:36:46 sandervl Exp $ */ 2 2 3 3 /* … … 23 23 #include <winexe.h> 24 24 #include <winres.h> 25 #include <winresmenu.h> 25 26 #include <unicode.h> 26 27 #include <heapstring.h> … … 274 275 } 275 276 } 276 else res = new Win32Resource(this, id, type, pData->Size, resdata); 277 else { 278 switch(type) { 279 case NTRT_MENU: 280 res = new Win32MenuRes(this, id, type, pData->Size, resdata); 281 break; 282 default: 283 res = new Win32Resource(this, id, type, pData->Size, resdata); 284 break; 285 } 286 287 } 277 288 278 289 return res; … … 343 354 if(hres) 344 355 { 345 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 356 switch((ULONG)szType) { 357 case NTRT_MENU: 358 res = new Win32MenuRes(this, hres, (ULONG)lpszName, (ULONG)szType); 359 break; 360 default: 361 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 362 break; 363 } 346 364 } 347 365 … … 440 458 if(hres) 441 459 { 442 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 460 switch((ULONG)szType) { 461 case NTRT_MENU: 462 res = new Win32MenuRes(this, hres, (ULONG)lpszName, (ULONG)szType); 463 break; 464 default: 465 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 466 break; 467 } 443 468 } 444 469
Note:
See TracChangeset
for help on using the changeset viewer.