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/ResizableLib | |
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/ResizableLib')
-rw-r--r-- | src/thirdparty/ResizableLib/ResizableState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thirdparty/ResizableLib/ResizableState.cpp b/src/thirdparty/ResizableLib/ResizableState.cpp index 8dae2e3d8..237e14353 100644 --- a/src/thirdparty/ResizableLib/ResizableState.cpp +++ b/src/thirdparty/ResizableLib/ResizableState.cpp @@ -44,7 +44,7 @@ BOOL CResizableState::SaveWindowRect(LPCTSTR pszSection, BOOL bRectOnly) CString data;
WINDOWPLACEMENT wp;
- ZeroMemory(&wp, sizeof(WINDOWPLACEMENT));
+ SecureZeroMemory(&wp, sizeof(WINDOWPLACEMENT));
wp.length = sizeof(WINDOWPLACEMENT);
if (!GetResizableWnd()->GetWindowPlacement(&wp))
return FALSE;
@@ -79,7 +79,7 @@ BOOL CResizableState::LoadWindowRect(LPCTSTR pszSection, BOOL bRectOnly) if (data.IsEmpty()) // never saved before
return FALSE;
- ZeroMemory(&wp, sizeof(WINDOWPLACEMENT));
+ SecureZeroMemory(&wp, sizeof(WINDOWPLACEMENT));
wp.length = sizeof(WINDOWPLACEMENT);
if (!GetResizableWnd()->GetWindowPlacement(&wp))
return FALSE;
|