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
f0219373
Commit
f0219373
authored
Jul 22, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Copy memmove implementation from ntdll.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
773f0a83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
string.c
dlls/msvcrt/string.c
+19
-6
No files found.
dlls/msvcrt/string.c
View file @
f0219373
...
...
@@ -2230,19 +2230,32 @@ int __cdecl MSVCRT_memcmp(const void *ptr1, const void *ptr2, MSVCRT_size_t n)
}
/*********************************************************************
* mem
cpy
(MSVCRT.@)
* mem
move
(MSVCRT.@)
*/
void
*
__cdecl
MSVCRT_mem
cpy
(
void
*
dst
,
const
void
*
src
,
MSVCRT_size_t
n
)
void
*
__cdecl
MSVCRT_mem
move
(
void
*
dst
,
const
void
*
src
,
MSVCRT_size_t
n
)
{
return
memmove
(
dst
,
src
,
n
);
volatile
unsigned
char
*
d
=
dst
;
/* avoid gcc optimizations */
const
unsigned
char
*
s
=
src
;
if
((
MSVCRT_size_t
)
dst
-
(
MSVCRT_size_t
)
src
>=
n
)
{
while
(
n
--
)
*
d
++
=
*
s
++
;
}
else
{
d
+=
n
-
1
;
s
+=
n
-
1
;
while
(
n
--
)
*
d
--
=
*
s
--
;
}
return
dst
;
}
/*********************************************************************
* mem
move
(MSVCRT.@)
* mem
cpy
(MSVCRT.@)
*/
void
*
__cdecl
MSVCRT_mem
move
(
void
*
dst
,
const
void
*
src
,
MSVCRT_size_t
n
)
void
*
__cdecl
MSVCRT_mem
cpy
(
void
*
dst
,
const
void
*
src
,
MSVCRT_size_t
n
)
{
return
memmove
(
dst
,
src
,
n
);
return
MSVCRT_
memmove
(
dst
,
src
,
n
);
}
/*********************************************************************
...
...
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