Changeset 63070 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Aug 5, 2016 10:24:30 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxCredProv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProvCredential.cpp
r62522 r63070 24 24 # define WIN32_NO_STATUS 25 25 #endif 26 #include <i ntsafe.h>26 #include <iprt/win/intsafe.h> 27 27 28 28 #include "VBoxCredentialProvider.h" … … 754 754 * @return HRESULT 755 755 * @param dwFieldID Field to set value for. 756 * @param pcwzString Actual value to set. 757 */ 758 HRESULT 759 VBoxCredProvCredential::SetStringValue(DWORD dwFieldID, PCWSTR pcwzString) 760 { 756 * @param pwszValue Actual value to set. 757 */ 758 HRESULT 759 VBoxCredProvCredential::SetStringValue(DWORD dwFieldID, PCWSTR pwszValue) 760 { 761 RT_NOREF(dwFieldID, pwszValue); 761 762 #ifdef DEBUG 762 763 VBoxCredProvVerbose(0, "VBoxCredProvCredential::SetStringValue: dwFieldID=%ld, pcwzString=%ls\n", 763 dwFieldID, p cwzString);764 dwFieldID, pwszValue); 764 765 #endif 765 766 … … 947 948 if (SUCCEEDED(hr)) 948 949 { 949 ULONG ulAuthPackage; 950 ULONG ulAuthPackage = 0; 951 /** @todo r=bird: The code flow here looks wrong. The fact that ulAuthPackage 952 * wasn't initialized if LsaConnectUntrusted fails, but still used and 953 * we seemingly even succeed the operation as a whole. Unfortunately, 954 * the code does not have any comments what-so-family-ever to 955 * enlighten us as to wtf (f == family) this Lsa stuff is doing and 956 * why it appear to be kind of optional... 957 * 958 * I'm pretty sure this code if broken. And if it is, it's because the 959 * stupid, stupid, code structure where you repeat state checks to avoid 960 * hugging the right margin. The function is too long already, so the 961 * right way to deal with that is to split up the work into several 962 * functions with simplier control flow. 963 */ 964 #pragma message("TODO: Investigate code flow around ulAuthPackage!") 965 #ifdef DEBUG_andy 966 # error "fix this ASAP, it's been here since the r76490 rewrite" 967 #endif 950 968 951 969 HANDLE hLsa; … … 971 989 if (SUCCEEDED(hr)) 972 990 { 973 s = LsaLookupAuthenticationPackage(hLsa, &lsaszKerberosName, 974 &ulAuthPackage); 991 s = LsaLookupAuthenticationPackage(hLsa, &lsaszKerberosName, &ulAuthPackage); 975 992 if (FAILED(HRESULT_FROM_NT(s))) 976 993 { … … 1023 1040 CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon) 1024 1041 { 1042 RT_NOREF(ntStatus, ntSubStatus, ppwszOptionalStatusText, pcpsiOptionalStatusIcon); 1025 1043 VBoxCredProvVerbose(0, "VBoxCredProvCredential::ReportResult: ntStatus=%ld, ntSubStatus=%ld\n", 1026 1044 ntStatus, ntSubStatus); -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProvCredential.h
r62811 r63070 74 74 IFACEMETHODIMP GetSubmitButtonValue(DWORD dwFieldID, DWORD *pdwAdjacentTo); 75 75 76 IFACEMETHODIMP SetStringValue(DWORD dwFieldID, PCWSTR p cwzString);76 IFACEMETHODIMP SetStringValue(DWORD dwFieldID, PCWSTR pwszValue); 77 77 IFACEMETHODIMP SetCheckboxValue(DWORD dwFieldID, BOOL fChecked); 78 78 IFACEMETHODIMP SetComboBoxSelectedValue(DWORD dwFieldID, DWORD dwSelectedItem); -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProvProvider.cpp
r62522 r63070 22 22 #include <new> /* For bad_alloc. */ 23 23 24 #include <iprt/win/windows.h> 24 25 #include <credentialprovider.h> 25 26
Note:
See TracChangeset
for help on using the changeset viewer.