- Timestamp:
- Mar 12, 2012 6:28:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibCredentials.cpp
r40263 r40436 146 146 } 147 147 else 148 VbglR3CredentialsDestroyUtf16(pwszUser, pwszPassword, pwszDomain, 149 3 /* Passes */); 150 151 VbglR3CredentialsDestroy(pszUser, pszPassword, pszDomain, 152 3 /* Passes */); 148 VbglR3CredentialsDestroyUtf16(pwszUser, pwszPassword, pwszDomain, 3 /* Passes */); 149 VbglR3CredentialsDestroy(pszUser, pszPassword, pszDomain, 3 /* Passes */); 153 150 } 154 151 155 152 return rc; 156 153 } 154 157 155 158 156 /** … … 183 181 } 184 182 183 185 184 /** 186 185 * Clears and frees the three strings. UTF-16 version. … … 199 198 /* wipe first */ 200 199 if (pwszUser) 201 RTMemWipeThoroughly(pwszUser, RTUtf16Len(pwszUser) + sizeof(RTUTF16),cPasses);200 RTMemWipeThoroughly(pwszUser, (RTUtf16Len(pwszUser) + 1) * sizeof(RTUTF16), cPasses); 202 201 if (pwszPassword) 203 RTMemWipeThoroughly(pwszPassword, RTUtf16Len(pwszPassword) +sizeof(RTUTF16), cPasses);202 RTMemWipeThoroughly(pwszPassword, (RTUtf16Len(pwszPassword) + 1) * sizeof(RTUTF16), cPasses); 204 203 if (pwszDomain) 205 RTMemWipeThoroughly(pwszDomain, RTUtf16Len(pwszDomain) + sizeof(RTUTF16),cPasses);204 RTMemWipeThoroughly(pwszDomain, (RTUtf16Len(pwszDomain) + 1) * sizeof(RTUTF16), cPasses); 206 205 207 206 /* then free. */
Note:
See TracChangeset
for help on using the changeset viewer.