Re: [PATCH v13 0/5] MR10673: oleaut32: Fix Null handling in three-valued logical ops.
May 4, 2026
11:33 a.m.
Jacek Caban (@jacek) commented about dlls/oleaut32/variant.c:
if (leftvt == VT_NULL || rightvt == VT_NULL) { - /* - * Special cases for when left variant is VT_NULL - * (VT_NULL & 0 = VT_NULL, VT_NULL & value = value) - */ + /* 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;
You may just use `V_VT(other)`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10673#note_138751
7
Age (days ago)
7
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban (@jacek)