Changeset 70387 in vbox
- Timestamp:
- Dec 29, 2017 2:13:36 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119992
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp
r70362 r70387 359 359 360 360 /* Check out the resource section, looking for VS_FIXEDFILEINFO. */ 361 __try 361 __try /* (pointless) */ 362 362 { 363 363 PIMAGE_SECTION_HEADER paShdrs = (PIMAGE_SECTION_HEADER)(pNtHdrs + 1); … … 453 453 static bool rtR0Nt3InitModuleInfoOne(const char *pszImage, uint8_t const *pbCode, uint8_t **ppbModule, uint32_t *pcbModule) 454 454 { 455 uintptr_t const uImageAlign = _ 64K;455 uintptr_t const uImageAlign = _4K; /* XP may put the kernel at */ 456 456 457 457 /* Align pbCode. */ … … 461 461 for (uint32_t cbChecked = 0; cbChecked < _64M; cbChecked += uImageAlign, pbCode -= uImageAlign) 462 462 { 463 if (!MmIsAddressValid((void *)pbCode)) 464 continue; 465 463 466 uint32_t uZero = 0; 464 467 uint32_t offNewHdr = 0; 465 __try 468 __try /* pointless */ 466 469 { 467 470 uZero = *(uint32_t const *)pbCode; … … 478 481 { 479 482 RT_CONCAT(IMAGE_NT_HEADERS,ARCH_BITS) NtHdrs; 480 __try 483 __try /* pointless */ 481 484 { 482 485 NtHdrs = *(decltype(NtHdrs) const *)&pbCode[offNewHdr];
Note:
See TracChangeset
for help on using the changeset viewer.