FreeRDP
crt/memory.c
1
20
#include <winpr/config.h>
21
22
#include <winpr/crt.h>
23
24
/* Memory Allocation: http://msdn.microsoft.com/en-us/library/hk1k7x6x.aspx */
25
/* Memory Management Functions: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366781/ */
26
27
#ifndef _WIN32
28
29
PVOID SecureZeroMemory(PVOID ptr,
size_t
cnt)
30
{
31
volatile
BYTE* p = ptr;
32
33
while
(cnt--)
34
{
35
*p = 0;
36
p++;
37
}
38
39
return
ptr;
40
}
41
42
#endif
winpr
libwinpr
crt
memory.c
Generated by
1.9.1