Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9f50d049
Commit
9f50d049
authored
Feb 26, 2000
by
Juergen Schmied
Committed by
Alexandre Julliard
Feb 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed definition of the RtlMemory functions. Use macros internally and
for Winelib, use real functions for exports from ntdll.
parent
61ef5111
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
37 deletions
+59
-37
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
rtl.c
dlls/ntdll/rtl.c
+47
-0
winbase.h
include/winbase.h
+5
-8
winnt.h
include/winnt.h
+6
-0
string.c
memory/string.c
+0
-28
No files found.
dlls/ntdll/ntdll.spec
View file @
9f50d049
...
...
@@ -291,7 +291,7 @@ type win32
@ stub RtlClearAllBits
@ stdcall RtlClearBits(long long long) RtlClearBits
@ stub RtlCompactHeap
@ st
ub
RtlCompareMemory
@ st
dcall RtlCompareMemory(ptr ptr long)
RtlCompareMemory
@ stub RtlCompareMemoryUlong
@ stub RtlCompareString
@ stdcall RtlCompareUnicodeString (ptr ptr long) RtlCompareUnicodeString
...
...
dlls/ntdll/rtl.c
View file @
9f50d049
...
...
@@ -503,6 +503,53 @@ NTSTATUS WINAPI RtlClearBits(DWORD x1,DWORD x2,DWORD x3)
}
/******************************************************************************
* RtlCopyMemory [NTDLL]
*
*/
#undef RtlCopyMemory
VOID
WINAPI
RtlCopyMemory
(
VOID
*
Destination
,
CONST
VOID
*
Source
,
SIZE_T
Length
)
{
memcpy
(
Destination
,
Source
,
Length
);
}
/******************************************************************************
* RtlMoveMemory [NTDLL]
*/
#undef RtlMoveMemory
VOID
WINAPI
RtlMoveMemory
(
VOID
*
Destination
,
CONST
VOID
*
Source
,
SIZE_T
Length
)
{
memmove
(
Destination
,
Source
,
Length
);
}
/******************************************************************************
* RtlFillMemory [NTDLL]
*/
#undef RtlFillMemory
VOID
WINAPI
RtlFillMemory
(
VOID
*
Destination
,
SIZE_T
Length
,
BYTE
Fill
)
{
memset
(
Destination
,
Fill
,
Length
);
}
/******************************************************************************
* RtlZeroMemory [NTDLL]
*/
#undef RtlZeroMemory
VOID
WINAPI
RtlZeroMemory
(
VOID
*
Destination
,
SIZE_T
Length
)
{
memset
(
Destination
,
0
,
Length
);
}
/******************************************************************************
* RtlCompareMemory [NTDLL]
*/
SIZE_T
WINAPI
RtlCompareMemory
(
const
VOID
*
Source1
,
const
VOID
*
Source2
,
SIZE_T
Length
)
{
int
i
;
for
(
i
=
0
;
(
i
<
Length
)
&&
(((
LPBYTE
)
Source1
)[
i
]
==
((
LPBYTE
)
Source2
)[
i
]);
i
++
);
return
i
;
}
/******************************************************************************
* RtlAssert [NTDLL]
*
* Not implemented in non-debug versions.
...
...
include/winbase.h
View file @
9f50d049
...
...
@@ -1439,14 +1439,6 @@ BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *
#define ReportEvent WINELIB_NAME_AW(ReportEvent)
BOOL
WINAPI
ResetEvent
(
HANDLE
);
DWORD
WINAPI
ResumeThread
(
HANDLE
);
VOID
WINAPI
RtlFillMemory
(
LPVOID
,
UINT
,
UINT
);
#define FillMemory RtlFillMemory
VOID
WINAPI
RtlMoveMemory
(
LPVOID
,
LPCVOID
,
UINT
);
#define MoveMemory RtlMoveMemory
VOID
WINAPI
RtlZeroMemory
(
LPVOID
,
UINT
);
#define ZeroMemory RtlZeroMemory
VOID
WINAPI
RtlCopyMemory
(
LPVOID
,
const
VOID
*
,
DWORD
);
#define CopyMemory RtlCopyMemory
BOOL
WINAPI
RevertToSelf
(
void
);
DWORD
WINAPI
SearchPathA
(
LPCSTR
,
LPCSTR
,
LPCSTR
,
DWORD
,
LPSTR
,
LPSTR
*
);
DWORD
WINAPI
SearchPathW
(
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPWSTR
,
LPWSTR
*
);
...
...
@@ -1765,6 +1757,11 @@ INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
INT
WINAPI
lstrcmpiW
(
LPCWSTR
,
LPCWSTR
);
#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
/* compatibility macros */
#define FillMemory RtlFillMemory
#define MoveMemory RtlMoveMemory
#define ZeroMemory RtlZeroMemory
#define CopyMemory RtlCopyMemory
/* the following may be macros when compiling Wine */
#ifndef SetLastError
...
...
include/winnt.h
View file @
9f50d049
...
...
@@ -1625,6 +1625,12 @@ typedef enum tagSID_NAME_USE {
#define DACL_SECURITY_INFORMATION 0x00000004
#define SACL_SECURITY_INFORMATION 0x00000008
#define RtlEqualMemory(Destination, Source, Length) (!memcmp((Destination),(Source),(Length)))
#define RtlMoveMemory(Destination, Source, Length) memmove((Destination),(Source),(Length))
#define RtlCopyMemory(Destination, Source, Length) memcpy((Destination),(Source),(Length))
#define RtlFillMemory(Destination, Length, Fill) memset((Destination),(Fill),(Length))
#define RtlZeroMemory(Destination, Length) memset((Destination),0,(Length))
#include "poppack.h"
#endif
/* __WINE_WINNT_H */
memory/string.c
View file @
9f50d049
...
...
@@ -477,34 +477,6 @@ void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
memcpy
(
dst
,
src
,
size
);
}
/***********************************************************************
* RtlFillMemory (KERNEL32.441)
*/
VOID
WINAPI
RtlFillMemory
(
LPVOID
ptr
,
UINT
len
,
UINT
fill
)
{
memset
(
ptr
,
fill
,
len
);
}
/***********************************************************************
* RtlMoveMemory (KERNEL32.442)
*/
VOID
WINAPI
RtlMoveMemory
(
LPVOID
dst
,
LPCVOID
src
,
UINT
len
)
{
memmove
(
dst
,
src
,
len
);
}
/***********************************************************************
* RtlZeroMemory (KERNEL32.444)
*/
VOID
WINAPI
RtlZeroMemory
(
LPVOID
ptr
,
UINT
len
)
{
memset
(
ptr
,
0
,
len
);
}
/***********************************************************************
* AnsiToOem16 (KEYBOARD.5)
*/
...
...
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