Fix ThrowSystemError test on Windows.