Juan Lang : rsaenh: Use LocalFree to free memory return by Crypt(Un) ProtectData.
Alexandre Julliard
julliard at winehq.org
Wed Nov 7 06:46:00 CST 2007
Module: wine
Branch: master
Commit: 8788cca0eff2e64e541123c6f3869543dfe462b4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8788cca0eff2e64e541123c6f3869543dfe462b4
Author: Juan Lang <juan.lang at gmail.com>
Date: Tue Nov 6 13:58:55 2007 -0800
rsaenh: Use LocalFree to free memory return by Crypt(Un)ProtectData.
---
dlls/rsaenh/rsaenh.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index 2d89751..776c6e7 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -895,7 +895,7 @@ static void store_key_pair(HCRYPTKEY hCryptKey, HKEY hKey, LPCSTR szValueName, D
{
RegSetValueExA(hKey, szValueName, 0, REG_BINARY,
blobOut.pbData, blobOut.cbData);
- HeapFree(GetProcessHeap(), 0, blobOut.pbData);
+ LocalFree(blobOut.pbData);
}
}
HeapFree(GetProcessHeap(), 0, pbKey);
@@ -1135,7 +1135,7 @@ static BOOL read_key_value(HCRYPTPROV hKeyContainer, HKEY hKey, LPCSTR szValueNa
{
ret = RSAENH_CPImportKey(hKeyContainer, blobOut.pbData, blobOut.cbData, 0, 0,
phCryptKey);
- HeapFree(GetProcessHeap(), 0, blobOut.pbData);
+ LocalFree(blobOut.pbData);
}
}
HeapFree(GetProcessHeap(), 0, pbKey);
More information about the wine-cvs
mailing list