std: Fix broken Windows function