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
07071645
Commit
07071645
authored
Aug 04, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Fix __std_type_info_compare implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
983bbab5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
cpp.c
dlls/msvcrt/cpp.c
+21
-10
No files found.
dlls/msvcrt/cpp.c
View file @
07071645
...
...
@@ -575,16 +575,6 @@ int __thiscall MSVCRT_type_info_before(type_info * _this, const type_info * rhs)
}
/******************************************************************
* __std_type_info_compare (MSVCRT.@)
*/
int
CDECL
MSVCRT_type_info_compare
(
type_info
*
_this
,
const
type_info
*
rhs
)
{
int
ret
=
strcmp
(
_this
->
mangled
+
1
,
rhs
->
mangled
+
1
);
TRACE
(
"(%p %p) returning %d
\n
"
,
_this
,
rhs
,
ret
);
return
ret
;
}
/******************************************************************
* ??1type_info@@UAE@XZ (MSVCRT.@)
*/
DEFINE_THISCALL_WRAPPER
(
MSVCRT_type_info_dtor
,
4
)
...
...
@@ -1513,3 +1503,24 @@ void* __cdecl __AdjustPointer(void *obj, const this_ptr_offsets *off)
{
return
get_this_pointer
(
off
,
obj
);
}
#if _MSVCR_VER >= 140
typedef
struct
{
char
*
name
;
char
mangled
[
1
];
}
type_info140
;
/******************************************************************
* __std_type_info_compare (UCRTBASE.@)
*/
int
CDECL
MSVCRT_type_info_compare
(
const
type_info140
*
l
,
const
type_info140
*
r
)
{
int
ret
;
if
(
l
==
r
)
ret
=
0
;
else
ret
=
strcmp
(
l
->
mangled
+
1
,
r
->
mangled
+
1
);
TRACE
(
"(%p %p) returning %d
\n
"
,
l
,
r
,
ret
);
return
ret
;
}
#endif
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