[PATCH] msvcp: Fix the _Thrd_equal spec entry.

Alexandre Julliard julliard at winehq.org
Tue Nov 28 08:10:20 CST 2017


Piotr Caban <piotr.caban at gmail.com> writes:

> On 11/28/17 14:04, Stefan Dösinger wrote:
>> Am 2017-11-28 um 13:53 schrieb Piotr Caban:
>>> On 11/28/17 13:43, Stefan Dösinger wrote:
>>>> -@ cdecl _Thrd_equal(ptr ptr)
>>>> +@ cdecl _Thrd_equal(ptr long ptr long)
>>> The spec entries should be different in arm, i386 and x86_64 case
>>> (current entry is correct for win64 case).
>> Admittedly I haven't tested the non-i386 case, and I guess you are
>> right, but I don't see what kind of magic makes the spec entry works on
>> x86_64.
> It's caused by ABI differences. The parameters are passed differently
> in i386 and x86_64 case (the structures are passed as pointer in
> x86_64 case).

You could probably use int64, that should do the right thing for all
platforms.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list