VirtualBox

Changeset 31982 in vbox for trunk/src


Ignore:
Timestamp:
Aug 26, 2010 11:54:30 AM (14 years ago)
Author:
vboxsync
Message:

VBoxService/VMInfo-win: Skip already terminated session data.

File:
1 edited

Legend:

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

    r30225 r31982  
    337337    if (rcNt != STATUS_SUCCESS)
    338338    {
    339         VBoxServiceError("VMInfo/Users: LsaGetLogonSessionData failed, LSA error %#x\n", LsaNtStatusToWinError(rcNt));
     339        ULONG ulError = LsaNtStatusToWinError(rcNt);
     340        /* Skip session data which is not valid anymore because it may have been                 
     341         * already terminated. */
     342        if (ulError != ERROR_NO_SUCH_LOGON_SESSION)
     343            VBoxServiceError("VMInfo/Users: LsaGetLogonSessionData failed, LSA error %u\n", ulError);
    340344        if (pSessionData)
    341345            LsaFreeReturnBuffer(pSessionData);
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