issue #4560 ： adapt samples for windows