VirtualBox

Changeset 39592 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 13, 2011 8:52:27 AM (13 years ago)
Author:
vboxsync
Message:

VBoxService/VMInfo-win: Respect stale session entries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r39280 r39592  
    564564                if (VBoxServiceVMInfoWinIsLoggedIn(&UserInfo, &paSessions[i]))
    565565                {
     566                    VBoxServiceVerbose(4, "VMInfo/Users: Handling user=%ls, domain=%ls, package=%ls\n",
     567                                       pUserInfo[i].wszUser, pUserInfo[i].wszLogonDomain, pUserInfo[i].wszAuthenticationPackage);
     568
     569                    /* Retrieve assigned processes of current session. */
    566570                    uint32_t cSessionProcs = VBoxServiceVMInfoWinSessionHasProcesses(&paSessions[i], paProcs, cProcs);
    567                     if (!cSessionProcs)
    568                         continue;
     571                    /* Don't return here when current session does not have assigned processes
     572                     * anymore -- in that case we have to search through the unique users list below
     573                     * and see if got a stale user/session entry. */
    569574
    570575                    bool fFoundUser = false;
     
    606611            }
    607612
    608             VBoxServiceVerbose(3, "VMInfo/Users: Found %u unique logged-in user(s) with processes\n",
     613            VBoxServiceVerbose(3, "VMInfo/Users: Found %u unique logged-in user(s)\n",
    609614                               cUniqueUsers);
    610615
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