Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d5292b1f
Commit
d5292b1f
authored
Feb 13, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winnt.h: Implement RtlSecureZeroMemory.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8db78fdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
winbase.h
include/winbase.h
+1
-0
winnt.h
include/winnt.h
+8
-0
No files found.
include/winbase.h
View file @
d5292b1f
...
...
@@ -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 */
...
...
include/winnt.h
View file @
d5292b1f
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment