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/DSUtil/DSUtil.h | |
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/DSUtil/DSUtil.h')
-rw-r--r-- | src/DSUtil/DSUtil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DSUtil/DSUtil.h b/src/DSUtil/DSUtil.h index 8e225f4c0..df129c723 100644 --- a/src/DSUtil/DSUtil.h +++ b/src/DSUtil/DSUtil.h @@ -265,7 +265,7 @@ public: template <typename T> __inline void INITDDSTRUCT(T& dd)
{
- ZeroMemory(&dd, sizeof(dd));
+ SecureZeroMemory(&dd, sizeof(dd));
dd.dwSize = sizeof(dd);
}
|