20 Sep
2024
20 Sep
'24
9:10 p.m.
Rémi Bernon (@rbernon) commented about dlls/bluetoothapis/sdp.c:
+ +#include "wine/debug.h" +#include "bthsdpdef.h" +#include "bluetoothapis.h" + +WINE_DEFAULT_DEBUG_CHANNEL( bluetoothapis ); + +#ifdef WORDS_BIGENDIAN +#define BTH_READ_UINT16( s ) (s) +#define BTH_READ_UINT32( s ) (s) +#define BTH_READ_UINT64( s ) (s) +#else +#define BTH_READ_UINT16( s ) RtlUshortByteSwap( *(USHORT *)(s) ) +#define BTH_READ_UINT32( s ) RtlUlongByteSwap( *(ULONG *)(s) ) +#define BTH_READ_UINT64( s ) RtlUlonglongByteSwap( *(ULONGLONG *)(s) ) +#endif I don't think we care about big endian on the PE side at all (not sure we even do on the unix side, but who knows).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6402#note_82798