VirtualBox

Changeset 29912 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
May 31, 2010 2:36:04 PM (15 years ago)
Author:
vboxsync
Message:

IPRT/process-win: Only deal with NULL domains on NT4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/process-win.cpp

    r29807 r29912  
    525525         *
    526526         * We may fail here with ERROR_PRIVILEGE_NOT_HELD.
    527          *
    528          * Because we have to deal with http://support.microsoft.com/kb/245683 for NULL domain names
    529          * on NT4 here, pass an empty string. However, passing FQDNs should work!
    530527         */
    531528        PHANDLE phToken = NULL;
    532529        HANDLE hTokenLogon = INVALID_HANDLE_VALUE;
    533530        fRc = LogonUserW(pwszUser,
    534                          L"",
     531                         /*
     532                          * Because we have to deal with http://support.microsoft.com/kb/245683
     533                          * for NULL domain names when running on NT4 here, pass an empty string if so.
     534                          * However, passing FQDNs should work!
     535                          */
     536                         ((DWORD)(LOBYTE(LOWORD(GetVersion()))) < 5)  /* < Windows 2000. */
     537                         ? L""   /* NT4 and older. */
     538                         : NULL, /* Windows 2000 and up. */
    535539                         pwszPassword,
    536540                         LOGON32_LOGON_INTERACTIVE,
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