4 Aug
2025
4 Aug
'25
7:28 p.m.
Nikolay Sivov (@nsivov) commented about dlls/combase/usrmarshal.c:
+ struct hstring_wire *wire; + + TRACE("%s, %p, %s.\n", debugstr_user_flags(flags), buf, debugstr_hstring(*str)); + + if (LOWORD(*flags) == MSHCTX_DIFFERENTMACHINE) + { + FIXME("MSHCTX_DIFFERENTMACHINE is not supported yet.\n"); + RpcRaiseException(RPC_S_INVALID_TAG); + } + + wire = ALIGNED_POINTER(buf, 7); +#ifdef _WIN64 + wire->context = WDT_INPROC64_CALL; +#else + wire->context = WDT_INPROC_CALL; +#endif Existing code uses compile time sizeof() checks instead of this. Maybe it's better to follow here too.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8703#note_112066