Fixed refs #24007 test on Windows.