VirtualBox

Changeset 33891 in vbox


Ignore:
Timestamp:
Nov 9, 2010 12:09:25 PM (14 years ago)
Author:
vboxsync
Message:

VBoxService/VMInfo: Skip none-mapped user accounts when enumerating (see code for more info).

File:
1 edited

Legend:

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

    r33595 r33891  
    393393                              &enmOwnerType))
    394394        {
    395             VBoxServiceError("VMInfo/Users: Failed looking up account info for user '%ls': %ld!\n",
    396                              a_pUserInfo->wszUser, GetLastError());
     395            DWOR dwErr = GetLastError();
     396            /*
     397             * If a network time-out prevents the function from finding the name or
     398             * if a SID that does not have a corresponding account name (such as a
     399             * logon SID that identifies a logon session), we get ERROR_NONE_MAPPED
     400             * here that we just skip.
     401             */
     402            if (dwErr != ERROR_NONE_MAPPED)
     403                VBoxServiceError("VMInfo/Users: Failed looking up account info for user '%ls': %ld!\n",
     404                                 a_pUserInfo->wszUser, dwErr);
    397405        }
    398406        else
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