VirtualBox

Ignore:
Timestamp:
Aug 24, 2014 6:35:04 PM (10 years ago)
Author:
vboxsync
Message:

SUPHardenedVerifyProcess-win.cpp: Seems NtQueryInformationThread confusing the calling process for the process the specified thread is associated with. Not vital to check the thread count before the child has executed, really.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp

    r52446 r52488  
    10181018     * Use the ThreadAmILastThread request to check that there is only one
    10191019     * thread in the process.
     1020     * Seems this isn't entirely reliable when hThread isn't the current thread?
    10201021     */
    10211022    ULONG cbIgn = 0;
     
    20522053     * allocate any state memory for these.
    20532054     */
    2054     int rc = supHardNtVpThread(hProcess, hThread, pErrInfo);
     2055    int rc = VINF_SUCCESS;
     2056    if (enmKind != SUPHARDNTVPKIND_CHILD_PURIFICATION)
     2057       rc = supHardNtVpThread(hProcess, hThread, pErrInfo);
    20552058#ifndef VBOX_WITHOUT_DEBUGGER_CHECKS
    20562059    if (RT_SUCCESS(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette