Fix win64 regression introduced by #15773

It was in a x86_64 block so the buildbots didn't notice it.
Fixes #16905