VirtualBox

Ignore:
Timestamp:
Jul 4, 2017 11:42:31 AM (7 years ago)
Author:
vboxsync
Message:

Additions/VBoxCredProv: Fixes for Windows 10 guests.

File:
1 edited

Legend:

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

    r63070 r67772  
    415415            RT_BZERO(pcpFieldDesc, sizeof(CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR));
    416416
    417             pcpFieldDesc->dwFieldID = field.desc.dwFieldID;
    418             pcpFieldDesc->cpft      = field.desc.cpft;
     417            pcpFieldDesc->dwFieldID     = field.desc.dwFieldID;
     418            pcpFieldDesc->cpft          = field.desc.cpft;
    419419            if (field.desc.pszLabel)
     420            {
    420421                hr = SHStrDupW(field.desc.pszLabel, &pcpFieldDesc->pszLabel);
     422
     423                VBoxCredProvVerbose(0, "VBoxCredProv::GetFieldDescriptorAt: dwIndex=%ld, pszLabel=%ls\n",
     424                                    dwIndex,
     425#ifdef DEBUG /* Don't show any (sensitive data) in release mode. */
     426                                    field.desc.pszLabel);
     427#else
     428                                    L"XXX");
     429#endif
     430            }
     431            pcpFieldDesc->guidFieldType = field.desc.guidFieldType;
    421432        }
    422433        else
     
    425436        if (SUCCEEDED(hr))
    426437            *ppFieldDescriptor = pcpFieldDesc;
    427         else
     438        else if (pcpFieldDesc)
    428439            CoTaskMemFree(pcpFieldDesc);
    429440    }
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