diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index 62161f3c..55a807a8 100644 --- a/include/WinStd/Common.h +++ b/include/WinStd/Common.h @@ -831,10 +831,10 @@ namespace winstd /// /// Deallocate object at _Ptr sanitizing its content first /// - inline void deallocate(_In_ pointer _Ptr, _In_ size_type _Count) + inline void deallocate(_In_ pointer _Ptr, _In_ size_type _Size) { // Sanitize then free. - SecureZeroMemory(_Ptr, sizeof(_Ty)*_Count); + SecureZeroMemory(_Ptr, _Size); ::operator delete(_Ptr); }