fix extra level of indirection in windows code