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:
- */ + /* 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
7
Age (days ago)
7
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban (@jacek)