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
773f0a83
Commit
773f0a83
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 memcmp implementation from ntdll.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9d4eeaeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
string.c
dlls/msvcrt/string.c
+8
-1
No files found.
dlls/msvcrt/string.c
View file @
773f0a83
...
@@ -2219,7 +2219,14 @@ int CDECL MSVCRT_I10_OUTPUT(MSVCRT__LDOUBLE ld80, int prec, int flag, struct _I1
...
@@ -2219,7 +2219,14 @@ int CDECL MSVCRT_I10_OUTPUT(MSVCRT__LDOUBLE ld80, int prec, int flag, struct _I1
*/
*/
int
__cdecl
MSVCRT_memcmp
(
const
void
*
ptr1
,
const
void
*
ptr2
,
MSVCRT_size_t
n
)
int
__cdecl
MSVCRT_memcmp
(
const
void
*
ptr1
,
const
void
*
ptr2
,
MSVCRT_size_t
n
)
{
{
return
memcmp
(
ptr1
,
ptr2
,
n
);
const
unsigned
char
*
p1
,
*
p2
;
for
(
p1
=
ptr1
,
p2
=
ptr2
;
n
;
n
--
,
p1
++
,
p2
++
)
{
if
(
*
p1
<
*
p2
)
return
-
1
;
if
(
*
p1
>
*
p2
)
return
1
;
}
return
0
;
}
}
/*********************************************************************
/*********************************************************************
...
...
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