VirtualBox

Changeset 84395 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 20, 2020 9:31:13 AM (5 years ago)
Author:
vboxsync
Message:

Main/hardening: VC++ 19.x warnings. bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r83901 r84395  
    30403040            /* Hardened windows builds spawns three processes when a VM is
    30413041               launched, the 3rd one is the one that will end up here.  */
    3042             RTPROCESS ppid;
    3043             int rc = RTProcQueryParent(pid, &ppid);
    3044             if (RT_SUCCESS(rc))
    3045                 rc = RTProcQueryParent(ppid, &ppid);
    3046             if (   (RT_SUCCESS(rc) && mData->mSession.mPID == ppid)
    3047                 || rc == VERR_ACCESS_DENIED)
     3042            RTPROCESS pidParent;
     3043            int vrc = RTProcQueryParent(pid, &pidParent);
     3044            if (RT_SUCCESS(vrc))
     3045                vrc = RTProcQueryParent(pidParent, &pidParent);
     3046            if (   (RT_SUCCESS(vrc) && mData->mSession.mPID == pidParent)
     3047                || vrc == VERR_ACCESS_DENIED)
    30483048            {
    30493049                LogFlowThisFunc(("mSession.mPID => %d(%#x) - windows hardening stub\n", mData->mSession.mPID, pid));
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