winstd::data_blob revised

This commit is contained in:
2016-06-22 23:32:20 +02:00
parent 0c8d8f8931
commit f9c0581409
2 changed files with 21 additions and 14 deletions

View File

@@ -149,3 +149,14 @@ winstd::crypt_key::handle_type winstd::crypt_key::duplicate_internal(_In_ handle
handle_type hNew = NULL;
return CryptDuplicateKey(h, NULL, 0, &hNew) ? hNew : NULL;
}
//////////////////////////////////////////////////////////////////////
// winstd::data_blob
//////////////////////////////////////////////////////////////////////
winstd::data_blob::~data_blob()
{
if (pbData)
LocalFree(pbData);
}