diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-12-24 21:27:37 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-12-27 20:35:21 +0400 |
commit | 0533530d9f661b0ec19756382a8c99b679182b5f (patch) | |
tree | 90c5742e184be4289fca1d67d3381ca39fb89706 /src/thirdparty/TreePropSheet | |
parent | d5a518206cab8317856ccd9ec6ec68fc37e9f11f (diff) |
Replace ZeroMemory() with SecureZeroMemory(). The MSDN article for ZeroMemory says: "To avoid any undesired effects of optimizing compilers, use the SecureZeroMemory function."
Diffstat (limited to 'src/thirdparty/TreePropSheet')
-rw-r--r-- | src/thirdparty/TreePropSheet/TreePropSheet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thirdparty/TreePropSheet/TreePropSheet.cpp b/src/thirdparty/TreePropSheet/TreePropSheet.cpp index 06a5a29da..51dc6402d 100644 --- a/src/thirdparty/TreePropSheet/TreePropSheet.cpp +++ b/src/thirdparty/TreePropSheet/TreePropSheet.cpp @@ -337,7 +337,7 @@ void CTreePropSheet::RefillPageTree() CString strPagePath;
TCITEM ti;
- ZeroMemory(&ti, sizeof(ti));
+ SecureZeroMemory(&ti, sizeof(ti));
ti.mask = TCIF_TEXT|TCIF_IMAGE;
ti.cchTextMax = _MAX_PATH;
ti.pszText = strPagePath.GetBuffer(ti.cchTextMax);
@@ -577,7 +577,7 @@ void CTreePropSheet::UpdateCaption() if (pImages)
{
TCITEM ti;
- ZeroMemory(&ti, sizeof(ti));
+ SecureZeroMemory(&ti, sizeof(ti));
ti.mask = TCIF_IMAGE;
HICON hIcon = NULL;
|