VirtualBox

Changeset 102771 in vbox for trunk/src


Ignore:
Timestamp:
Jan 5, 2024 8:38:17 AM (13 months ago)
Author:
vboxsync
Message:

Guest Properties/VBoxService: On user RID fallback, also write the resolved user name into a dedicated key, so that it's easier to look it up for the host. ​bugref:10575

File:
1 edited

Legend:

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

    r102754 r102771  
    11121112                    char  szUserRid[16 + 1];
    11131113                    if (RTStrPrintf2(szUserRid, sizeof(szUserRid), "%ld", dwUserRid) > 0)
     1114                    {
    11141115                        rc = vgsvcVMInfoWinUserUpdateFallbackV(pCache, szUserRid, pszDomain, pwszSid, pszKey,
    11151116                                                               pszValueFormat, va);
     1117                        /* Also write the resolved user name into a dedicated key,
     1118                         * so that it's easier to look it up for the host. */
     1119                        if (RT_SUCCESS(rc))
     1120                            rc = VGSvcUserUpdateV(pCache, szUserRid, NULL /* pszDomain */, "User", pszUser);
     1121                    }
    11161122                    else
    11171123                        rc = VERR_BUFFER_OVERFLOW;
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