diff options
author | Lakshmi Priya Sekar <lasekar@microsoft.com> | 2015-09-08 12:01:33 -0700 |
---|---|---|
committer | Lakshmi Priya Sekar <lasekar@microsoft.com> | 2015-09-08 14:31:43 -0700 |
commit | 260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91 (patch) | |
tree | eaf3d7a932739a8da89e64f0c9ac322e8c671dba /src/tools | |
parent | 2d2d0a5b512e2832565c448d9b4c6d6c1897f150 (diff) | |
download | coreclr-260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91.tar.gz coreclr-260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91.tar.bz2 coreclr-260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91.zip |
Replace MAX_PATH with new defines, rest of coreclr.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/crossgen/crossgen.cpp | 8 | ||||
-rw-r--r-- | src/tools/util/consoleargs.cpp | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/crossgen/crossgen.cpp b/src/tools/crossgen/crossgen.cpp index 6f180a1441..192f6b1bf8 100644 --- a/src/tools/crossgen/crossgen.cpp +++ b/src/tools/crossgen/crossgen.cpp @@ -460,7 +460,7 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv) LPCWSTR pwzAppNiPaths = nullptr; LPCWSTR pwzPlatformAssembliesPaths = nullptr; LPCWSTR pwzPlatformWinmdPaths = nullptr; - WCHAR wzDirectoryToStorePDB[MAX_PATH] = W("\0"); + WCHAR wzDirectoryToStorePDB[MAX_LONGPATH] = W("\0"); bool fCreatePDB = false; bool fGeneratePDBLinesInfo = false; LPWSTR pwzSearchPathForManagedPDB = NULL; @@ -896,7 +896,7 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv) PrintLogoHelper(); } - WCHAR wzTrustedPathRoot[MAX_PATH]; + WCHAR wzTrustedPathRoot[MAX_LONGPATH]; #ifdef FEATURE_CORECLR SString ssTPAList; @@ -917,7 +917,7 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv) if (pwzTrustedPlatformAssemblies != nullptr) { - if (ComputeMscorlibPathFromTrustedPlatformAssemblies(wzTrustedPathRoot, MAX_PATH, pwzTrustedPlatformAssemblies)) + if (ComputeMscorlibPathFromTrustedPlatformAssemblies(wzTrustedPathRoot, MAX_LONGPATH, pwzTrustedPlatformAssemblies)) { pwzPlatformAssembliesPaths = wzTrustedPathRoot; SetMscorlibPath(pwzPlatformAssembliesPaths); @@ -927,7 +927,7 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv) if (pwzPlatformAssembliesPaths == NULL) { - if (!WszGetModuleFileName(NULL, wzTrustedPathRoot, MAX_PATH)) + if (!WszGetModuleFileName(NULL, wzTrustedPathRoot, MAX_LONGPATH)) { ERROR_WIN32(W("Error: GetModuleFileName failed (%d)\n"), GetLastError()); exit(CLR_INIT_ERROR); diff --git a/src/tools/util/consoleargs.cpp b/src/tools/util/consoleargs.cpp index fd89726541..1473206721 100644 --- a/src/tools/util/consoleargs.cpp +++ b/src/tools/util/consoleargs.cpp @@ -340,7 +340,7 @@ void ConsoleArgs::CleanUpArgs() bool ConsoleArgs::GetFullFileName(LPCWSTR szSource, __out_ecount(cchFilenameBuffer) LPWSTR filenameBuffer, DWORD cchFilenameBuffer, bool fOutputFilename) { #ifdef PLATFORM_UNIX - WCHAR tempBuffer[MAX_PATH]; + WCHAR tempBuffer[MAX_LONGPATH]; memset(filenameBuffer, 0, cchFilenameBuffer * sizeof(WCHAR)); if (!PathCanonicalizeW(tempBuffer, szSource) || StringCchCopyW(filenameBuffer, cchFilenameBuffer, tempBuffer) != S_OK) @@ -882,7 +882,7 @@ void ConsoleArgs::ProcessResponseArgs() HRESULT hr; b_tree *response_files = NULL; - WCHAR szFilename[MAX_PATH]; + WCHAR szFilename[MAX_LONGPATH]; for (WStrList * listCurArg = m_listArgs; listCurArg != NULL && !m_errorOccured; @@ -901,7 +901,7 @@ void ConsoleArgs::ProcessResponseArgs() } // Check for duplicates - if (!GetFullFileName(&szArg[1], szFilename, MAX_PATH, false)) + if (!GetFullFileName(&szArg[1], szFilename, MAX_LONGPATH, false)) continue; |