Changeset 53005 in vbox
- Timestamp:
- Oct 9, 2014 1:26:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp
r52943 r53005 2486 2486 NtClose(hFileClose); 2487 2487 2488 /* 2489 * DLLs that are likely candidates for local modifications. 2490 */ 2491 if (rc == VERR_LDRVI_NOT_SIGNED) 2492 { 2493 PCRTUTF16 pwsz; 2494 uint32_t cwcName = (uint32_t)RTUtf16Len(pwszName); 2495 uint32_t cwcOther = g_System32NtPath.UniStr.Length / sizeof(WCHAR); 2496 if (supHardViUtf16PathStartsWithEx(pwszName, cwcName, g_System32NtPath.UniStr.Buffer, cwcOther, true /*fCheckSlash*/)) 2497 { 2498 pwsz = pwszName + cwcOther + 1; 2499 if ( supHardViUtf16PathIsEqual(pwsz, "uxtheme.dll") 2500 || supHardViUtf16PathIsEqual(pwsz, "user32.dll") 2501 || supHardViUtf16PathIsEqual(pwsz, "gdi32.dll") 2502 || supHardViUtf16PathIsEqual(pwsz, "kernel32.dll") 2503 || supHardViUtf16PathIsEqual(pwsz, "KernelBase.dll") 2504 || supHardViUtf16PathIsEqual(pwsz, "ntdll.dll") 2505 || supHardViUtf16PathIsEqual(pwsz, "opengl32.dll") 2506 ) 2507 { 2508 if (RTErrInfoIsSet(pErrInfo)) 2509 RTErrInfoAdd(pErrInfo, rc, "\n"); 2510 RTErrInfoAddF(pErrInfo, rc, "'%ls' is most likely modified.", pwszName); 2511 } 2512 } 2513 } 2514 2488 2515 return rc; 2489 2516 }
Note:
See TracChangeset
for help on using the changeset viewer.