Revert "Revert "Fixed the problem of windows not working""

This reverts commit 7b61d4a4cf5652fd608981e518b7538f8928ace6.