| 7683 | |
| 7684 | |
| 7685 | LPTSTR GetWorkingDir() |
| 7686 | // Allocate a copy of the working directory from the heap. This is used to support long |
| 7687 | // paths without adding 64KB of stack usage per recursive #include <> on Unicode builds. |
| 7688 | { |
| 7689 | TCHAR buf[T_MAX_PATH]; |
| 7690 | if (GetCurrentDirectory(_countof(buf), buf)) |
| 7691 | return _tcsdup(buf); |
| 7692 | return NULL; |
| 7693 | } |
| 7694 | |
| 7695 | |
| 7696 |