Compile Error with VS 2022 17.8

To cross-reference, this was reported in Bugzilla 2582, and the patch is attached there until the next patch release if out (expected beginning of February).