fix logical error in path length handling for windows (#9520)
fix logical error in path length handling for windows (#9520)

fixes #9515
krisis/minio,NitishT/minio,NitishT/minio,balamurugana/minio,harshavardhana/minio,NitishT/minio,aead/minio,harshavardhana/minio,aead/minio,aead/minio,harshavardhana/minio,krisis/minio,harshavardhana/minio,vadmeste/minio,aead/minio,aead/minio,minio/minio,balamurugana/minio,aead/minio,harshavardhana/minio,harshavardhana/minio,minio/minio,aead/minio,NitishT/minio,donatello/minio,vadmeste/minio,harshavardhana/minio,donatello/minio,harshavardhana/minio,aead/minio