[PATCH v2 2/2] mingw: fix getcwd when the parent directory cannot be queried

2018-10-24 Thread Anton Serbulov via GitGitGadget
From: Anton Serbulov `GetLongPathName()` function may fail when it is unable to query the parent directory of a path component to determine the long name for that component. It happens, because it uses `FindFirstFile()` function for each next short part of path. The `FindFirstFile()` requires `Li

[PATCH 2/2] mingw: fix getcwd when the parent directory cannot be queried

2018-10-23 Thread Anton Serbulov via GitGitGadget
From: Anton Serbulov `GetLongPathName()` function may fail when it is unable to query the parent directory of a path component to determine the long name for that component. It happens, because of it uses `FindFirstFile()` function for each next short part of path. The `FindFirstFile()` requires