summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile
diff options
context:
space:
mode:
authorStella Stamenova <stilis@microsoft.com>2018-12-06 23:22:46 +0000
committerStella Stamenova <stilis@microsoft.com>2018-12-06 23:22:46 +0000
commitd408819aaf14e466b6f26004f359ba6a453b1365 (patch)
treef5e2eb2f866541475a493db68e8b99a85e636461 /lldb/source/Plugins/ObjectFile
parentf36d78d3cfc17fc09a40d5310700240260b77946 (diff)
downloadbcm5719-llvm-d408819aaf14e466b6f26004f359ba6a453b1365.tar.gz
bcm5719-llvm-d408819aaf14e466b6f26004f359ba6a453b1365.zip
[pecoff] Use PATH_MAX instead of MAX_PATH
PATH_MAX is defined on all platforms while MAX_PATH is Windows-specific llvm-svn: 348542
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
-rw-r--r--lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
index 1883abe054c..302fb02dfd0 100644
--- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -889,7 +889,7 @@ uint32_t ObjectFilePECOFF::ParseDependentModules() {
// At this moment we only have the base name of the DLL. The full path can
// only be seen after the dynamic loading. Our best guess is Try to get it
// with the help of the object file's directory.
- llvm::SmallString<MAX_PATH> dll_fullpath;
+ llvm::SmallString<PATH_MAX> dll_fullpath;
FileSpec dll_specs(dll_name);
dll_specs.GetDirectory().SetString(m_file.GetDirectory().GetCString());
OpenPOWER on IntegriCloud