VirtualBox

Ignore:
Timestamp:
Jun 4, 2013 2:12:21 PM (12 years ago)
Author:
vboxsync
Message:

VBoxCredProv: Don't retrieve new credentials if current ones were not processed yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProvCredential.cpp

    r46183 r46385  
    4343    m_enmUsageScenario(CPUS_INVALID),
    4444    m_cRefs(1),
    45     m_pEvents(NULL)
     45    m_pEvents(NULL),
     46    m_fHaveCreds(false)
    4647{
    4748    VBoxCredProvVerbose(0, "VBoxCredProvCredential: Created\n");
     
    347348                                    m_apwszCredentials[VBOXCREDPROV_FIELDID_DOMAINNAME]);
    348349            }
     350        }
     351
     352        m_fHaveCreds = true;
     353    }
     354    else
     355    {
     356        /* If credentials already were retrieved by a former call, don't try to retrieve new ones
     357         * and just report back the already retrieved ones. */
     358        if (m_fHaveCreds)
     359        {
     360            VBoxCredProvVerbose(0, "VBoxCredProvCredential::RetrieveCredentials: Credentials already retrieved\n");
     361            rc = VINF_SUCCESS;
    349362        }
    350363    }
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