ucrtbase: Implement __std_type_info_compare.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Martin Storsjo 2015-11-05 22:59:05 +02:00 committed by Alexandre Julliard
parent 5b53c0b88b
commit 78ce165f11
4 changed files with 13 additions and 3 deletions

View file

@ -44,7 +44,7 @@
@ stub __report_gsfailure
@ stub __std_exception_copy
@ stub __std_exception_destroy
@ stub __std_type_info_compare
@ cdecl __std_type_info_compare(ptr ptr) ucrtbase.__std_type_info_compare
@ stub __std_type_info_destroy_list
@ stub __std_type_info_hash
@ stub __std_type_info_name

View file

@ -574,6 +574,16 @@ int __thiscall MSVCRT_type_info_before(type_info * _this, const type_info * rhs)
return ret;
}
/******************************************************************
* __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.@)
*/

View file

@ -142,7 +142,7 @@
@ cdecl __setusermatherr(ptr) MSVCRT___setusermatherr
@ stub __std_exception_copy
@ stub __std_exception_destroy
@ stub __std_type_info_compare
@ cdecl __std_type_info_compare(ptr ptr) MSVCRT_type_info_compare
@ stub __std_type_info_destroy_list
@ stub __std_type_info_hash
@ stub __std_type_info_name

View file

@ -39,7 +39,7 @@
@ stub __std_exception_copy
@ stub __std_exception_destroy
@ stub __std_terminate
@ stub __std_type_info_compare
@ cdecl __std_type_info_compare(ptr ptr) ucrtbase.__std_type_info_compare
@ stub __std_type_info_destroy_list
@ stub __std_type_info_hash
@ stub __std_type_info_name