Replace MAX_PATH with new defines.
authorLakshmi Priya Sekar <lasekar@microsoft.com>
Tue, 25 Aug 2015 20:13:51 +0000 (13:13 -0700)
committerLakshmi Priya Sekar <lasekar@microsoft.com>
Tue, 25 Aug 2015 20:13:51 +0000 (13:13 -0700)
src/binder/assemblyname.cpp
src/binder/cdebuglog.cpp
src/binder/inc/bindertypes.hpp

index 3821b5c..f65363d 100644 (file)
@@ -117,7 +117,7 @@ namespace BINDER_SPACE
             assemblyName.Normalize();
 
             COUNT_T assemblyNameLength = assemblyName.GetCount();
-            if (assemblyNameLength == 0 || assemblyNameLength >= MAX_PATH)
+            if (assemblyNameLength == 0 || assemblyNameLength >= MAX_PATH_FNAME)
             {
                 IF_FAIL_GO(FUSION_E_INVALID_NAME);
             }
index e6dcefd..717fbd2 100644 (file)
@@ -56,11 +56,11 @@ namespace BINDER_SPACE
         {
             HRESULT hr=S_OK;
             LPTSTR  pszFileName;
-            TCHAR   szPath[MAX_PATH];
+            TCHAR   szPath[MAX_LONGPATH];
             DWORD   dw = 0;
 
             // _ASSERTE (pszPath ) ;
-            if (wcslen(pszName) >= MAX_PATH)
+            if (wcslen(pszName) >= MAX_LONGPATH)
             {
                 IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BUFFER_OVERFLOW));
             }
index 97ea1db..3c4bed4 100644 (file)
@@ -32,7 +32,7 @@ class PEAssembly;
 
 namespace BINDER_SPACE
 {
-    typedef InlineSString<MAX_PATH + 1> PathString;
+    typedef InlineSString<MAX_LONGPATH + 1> PathString;
 
     class AssemblyVersion;
     class AssemblyName;