core: forgot to gate one change from last commit to Windows