You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace the integer literal assigned to VARIANT.missing with a constant. #821
The line is intended to assign DISP_E_PARAMNOTFOUND to a VARIANT field to create an instance for missing parameters. 0x80020004 is evaluated as an unsigned 32-bit hexadecimal integer in Python, so it is 2147549188, thus it does not match DISP_E_PARAMNOTFOUND(-2147352572).
Since neither -2147352572 nor 2147549188 has caused any errors or behavioral differences in VARIANT, assigning VT_ERROR to the vt field might be the more crucial aspect.
Regardless, this part is highly non-obvious, and this is confusing.
Activity
junkmd commentedon Oct 12, 2026
The existing codebase was not wrong to assign
0x80020004tov._.VT_I4.See 9cc4923.