Changeset 1758 for trunk/src/kernel32/winimagepe2lx.cpp
- Timestamp:
- Nov 16, 1999, 7:27:01 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepe2lx.cpp
r1325 r1758 1 /* $Id: winimagepe2lx.cpp,v 1. 3 1999-10-17 01:49:09bird Exp $ */1 /* $Id: winimagepe2lx.cpp,v 1.4 1999-11-16 18:27:01 bird Exp $ */ 2 2 3 3 /* … … 251 251 PVOID pv; 252 252 pv = getPointerFromRVA(pTLSDir->StartAddressOfRawData); 253 if (pv == NULL )253 if (pv == NULL || pTLSDir->StartAddressOfRawData == 0UL) 254 254 { 255 255 eprintf(("Win32Pe2LxImage::init: invalid RVA to TLS StartAddressOfRawData - %#8x.\n", … … 489 489 * @returns Pointer matching the given RVA, NULL on error. 490 490 * @param ulRVA An address relative to the imagebase of the original PE image. 491 * If this is 0UL NULL is returned. 491 492 * @sketch DEBUG: validate state, paSections != NULL 493 * IF ulRVA is 0 THEN return NULL 492 494 * LOOP while more section left and ulRVA is not within section 493 495 * next section … … 497 499 * @author knut st. osmundsen 498 500 * @remark Should not be called until getSections has returned successfully. 501 * RVA == 0 is ignored. 499 502 */ 500 503 PVOID Win32Pe2LxImage::getPointerFromRVA(ULONG ulRVA) … … 506 509 #endif 507 510 511 if (ulRVA == 0UL) 512 return NULL; 513 508 514 i = 0; 509 515 while (i < cSections &&
Note:
See TracChangeset
for help on using the changeset viewer.