| 342 | } |
| 343 | |
| 344 | static std::string GetFullPath(LPCSTR szFileName) |
| 345 | { |
| 346 | std::string strPathName; |
| 347 | |
| 348 | if (szFileName[0] == PATH_SEPARATOR || szFileName[1] == ':') |
| 349 | { |
| 350 | // Abs pathname |
| 351 | strPathName = szFileName; |
| 352 | } |
| 353 | else |
| 354 | { |
| 355 | // Rel pathname (GH#663) |
| 356 | strPathName = g_sStartDir; |
| 357 | strPathName.append(szFileName); |
| 358 | } |
| 359 | |
| 360 | return strPathName; |
| 361 | } |
| 362 | |
| 363 | static void SetCurrentDir(const std::string & pathname) |
| 364 | { |
no outgoing calls
no test coverage detected