Commit d5292b1f authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

winnt.h: Implement RtlSecureZeroMemory.

parent 8db78fdd
......@@ -2778,6 +2778,7 @@ WINBASEAPI UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
#define MoveMemory RtlMoveMemory
#define ZeroMemory RtlZeroMemory
#define CopyMemory RtlCopyMemory
#define SecureZeroMemory RtlSecureZeroMemory
/* Wine internal functions */
......
......@@ -5436,6 +5436,14 @@ typedef enum _CM_ERROR_CONTROL_TYPE
#define RtlFillMemory(Destination, Length, Fill) memset((Destination),(Fill),(Length))
#define RtlZeroMemory(Destination, Length) memset((Destination),0,(Length))
static FORCEINLINE void *RtlSecureZeroMemory(void *buffer, SIZE_T length)
{
volatile char *ptr = buffer;
while (length--) *ptr++ = 0;
return buffer;
}
#include <guiddef.h>
typedef struct _OBJECT_TYPE_LIST {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment