VirtualBox

Changeset 29514 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 17, 2010 9:35:20 AM (15 years ago)
Author:
vboxsync
Message:

Skip our own process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r29507 r29514  
    289289    HANDLE hSnapshot;
    290290    PAVLPVNODECORE pNewTree = NULL;
     291    DWORD dwProcessId = GetCurrentProcessId();
    291292
    292293    VBoxServiceVerbose(3, "VBoxServicePageSharingInspectGuest\n");
     
    307308    do
    308309    {
    309         VBoxServicePageSharingInspectModules(ProcessInfo.th32ProcessID, &pNewTree);
     310        /* Skip our own process. */
     311        if (ProcessInfo.th32ProcessID != dwProcessId)
     312            VBoxServicePageSharingInspectModules(ProcessInfo.th32ProcessID, &pNewTree);
    310313    }
    311314    while (Process32Next(hSnapshot, &ProcessInfo));
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