| 7669 | |
| 7670 | |
| 7671 | void UpdateWorkingDir(LPTSTR aNewDir) |
| 7672 | // aNewDir is NULL or a path which was just passed to SetCurrentDirectory(). |
| 7673 | { |
| 7674 | TCHAR buf[T_MAX_PATH]; // Windows 10 long path awareness enables working dir to exceed MAX_PATH. |
| 7675 | // GetCurrentDirectory() is called explicitly, in case aNewDir is a relative path. |
| 7676 | // We want to store the absolute path: |
| 7677 | if (GetCurrentDirectory(_countof(buf), buf)) // Might never fail in this case, but kept for backward compatibility. |
| 7678 | aNewDir = buf; |
| 7679 | if (aNewDir) |
| 7680 | g_WorkingDir.SetString(aNewDir); |
| 7681 | } |
| 7682 | |
| 7683 | |
| 7684 |
no outgoing calls
no test coverage detected