2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 10:27:42 +00:00

use of reliable constant rather then iffy macro

This commit is contained in:
Jack Andersen
2016-09-29 17:32:24 -10:00
parent c0f060d6ad
commit ae348f111b
3 changed files with 6 additions and 6 deletions

2
hecl/extern/athena vendored

Submodule hecl/extern/athena updated: a2d040aeb4...5074381533

2
hecl/extern/boo vendored

Submodule hecl/extern/boo updated: 9b0355be45...fe9b475681

View File

@@ -525,13 +525,13 @@ std::vector<std::pair<hecl::SystemString, std::string>> GetSystemLocations()
while (result != kCFURLEnumeratorEnd) while (result != kCFURLEnumeratorEnd)
{ {
char defPath[MAXPATHLEN]; char defPath[1024];
result = CFURLEnumeratorGetNextURL(volEnum, &cfURL, NULL); result = CFURLEnumeratorGetNextURL(volEnum, &cfURL, NULL);
if (result != kCFURLEnumeratorSuccess) if (result != kCFURLEnumeratorSuccess)
continue; continue;
CFURLGetFileSystemRepresentation(cfURL, false, (UInt8 *)defPath, MAXPATHLEN); CFURLGetFileSystemRepresentation(cfURL, false, (UInt8 *)defPath, 1024);
ret.push_back(NameFromPath(defPath)); ret.push_back(NameFromPath(defPath));
} }