Changeset 464 for trunk/src/kernel32/winimgres.cpp
- Timestamp:
- Aug 10, 1999, 12:55:11 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimgres.cpp
r163 r464 1 /* $Id: winimgres.cpp,v 1. 4 1999-06-23 19:36:24phaller Exp $ */1 /* $Id: winimgres.cpp,v 1.5 1999-08-09 22:55:11 phaller Exp $ */ 2 2 3 3 /* … … 16 16 #include <stdlib.h> 17 17 #include <string.h> 18 #include <odincrt.h> 19 18 20 #include "misc.h" 19 21 #include "nameid.h" … … 159 161 unicodestr += *unicodestr; 160 162 } 163 ODIN_FS_BEGIN 161 164 res = new Win32Resource(this, id, NTRT_STRING, (ULONG)*unicodestr, (char *)unicodestr); 165 ODIN_FS_END 162 166 if(res == NULL) { 163 167 dprintf(("new Win32Resource failed!\n")); … … 165 169 } 166 170 } 167 else res = new Win32Resource(this, id, type, pData->Size, resdata); 171 else 172 ODIN_FS_BEGIN 173 res = new Win32Resource(this, id, type, pData->Size, resdata); 174 ODIN_FS_END 168 175 169 176 return res; … … 298 305 299 306 hres = O32_FindResource(hinstance, lpszName, szType); 300 if(hres) { 307 if(hres) 308 { 309 ODIN_FS_BEGIN 301 310 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 311 ODIN_FS_END 302 312 } 303 313 304 314 if(hres == NULL && (int)lpszName >> 16 == 0 && (int)szType == NTRT_STRING) { 305 315 hres = O32_FindResource(hinstance, (LPCSTR)(((int)lpszName - 1)*16), (LPCSTR)NTRT_RCDATA); 306 if(hres) { 316 if(hres) 317 { 318 ODIN_FS_BEGIN 307 319 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 320 ODIN_FS_END 308 321 } 309 322 else dprintf(("FindResourceA can't find string %d\n", (int)lpszName)); … … 393 406 394 407 hres = O32_FindResource(hinstance, (LPCSTR)lpszName, (LPCSTR)szType); 395 if(hres) { 408 if(hres) 409 { 410 ODIN_FS_BEGIN 396 411 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 412 ODIN_FS_END 397 413 } 398 414 399 415 if(hres == NULL && (int)lpszName >> 16 == 0 && (int)szType == NTRT_STRING) { 400 416 hres = O32_FindResource(hinstance, (LPCSTR)(((ULONG)lpszName - 1)*16), (LPCSTR)NTRT_RCDATA); 401 if(hres) { 402 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 417 if(hres) 418 { 419 ODIN_FS_BEGIN 420 res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType); 421 ODIN_FS_END 403 422 } 404 423 else dprintf(("FindResourceW can't find string %d\n", (int)lpszName));
Note:
See TracChangeset
for help on using the changeset viewer.