May 4, 2026
11:33 a.m.
Jacek Caban (@jacek) commented about dlls/oleaut32/variant.c:
- */ + /* Three-valued logic for `And` with Null: + * zero And Null = zero (typed by the resvt computed above) + * nonzero And Null = Null + * Null And Null = Null + * + * Both orderings must produce the same result. */ + VARIANT *other; + VARTYPE othervt; + BOOL nonzero = FALSE; + + if (leftvt == VT_NULL && rightvt == VT_NULL) + { + V_VT(result) = VT_NULL; + goto VarAnd_Exit; + } This does not need to be a special case. It will fallback to detault switch case anyway.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10673#note_138752