3333#include " llvm/Support/WithColor.h"
3434#include " llvm/Support/raw_ostream.h"
3535
36- #if _WIN32
36+ #ifdef _WIN32
3737#include " llvm/Support/Windows/WindowsSupport.h"
3838#endif
3939
@@ -434,11 +434,11 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
434434}
435435
436436#ifdef _WIN32
437- // Returns the full path to the lldb.exe executable
437+ // / Returns the full path to the lldb.exe executable.
438438inline std::wstring GetPathToExecutableW () {
439- // Iterate until we reach the Windows max path length (32,767).
439+ // Iterate until we reach the Windows API maximum path length (32,767).
440440 std::vector<WCHAR> buffer;
441- buffer.resize (MAX_PATH);
441+ buffer.resize (MAX_PATH/* =260 */ );
442442 while (buffer.size () < 32767 ) {
443443 if (GetModuleFileNameW (NULL , buffer.data (), buffer.size ()) < buffer.size ())
444444 return std::wstring (buffer.begin (), buffer.end ());
@@ -447,9 +447,9 @@ inline std::wstring GetPathToExecutableW() {
447447 return L" " ;
448448}
449449
450- // Resolve the full path of the directory defined by
451- // LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL search
452- // directories.
450+ // / Resolve the full path of the directory defined by
451+ // / LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL search
452+ // / directories.
453453void AddPythonDLLToSearchPath () {
454454 std::wstring modulePath = GetPathToExecutableW ();
455455 if (modulePath.empty ()) {
0 commit comments