From 034d1a61e8ac83d3b91819f7a19d7cb34e2902d3 Mon Sep 17 00:00:00 2001 From: Lakshmi Priya Sekar Date: Tue, 25 Aug 2015 16:19:37 -0700 Subject: Replace MAX_PATH with new defines in vm. --- src/palrt/path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/palrt/path.cpp') diff --git a/src/palrt/path.cpp b/src/palrt/path.cpp index 6b6f81af73..3aaae18a27 100644 --- a/src/palrt/path.cpp +++ b/src/palrt/path.cpp @@ -412,7 +412,7 @@ Returns: pointer to lpszDest STDAPI_(LPWSTR) PathCombineW(LPWSTR lpszDest, LPCWSTR lpszDir, LPCWSTR lpszFile) { #ifdef DEBUG - RIPMSG(lpszDest && IS_VALID_WRITE_BUFFER(lpszDest, TCHAR, MAX_PATH), "PathCombine: caller passed bad lpszDest"); + RIPMSG(lpszDest && IS_VALID_WRITE_BUFFER(lpszDest, TCHAR, MAX_LONGPATH), "PathCombine: caller passed bad lpszDest"); RIPMSG(!lpszDir || IS_VALID_STRING_PTR(lpszDir, -1), "PathCombine: caller passed bad lpszDir"); RIPMSG(!lpszFile || IS_VALID_STRING_PTR(lpszFile, -1), "PathCombine: caller passed bad lpszFile"); RIPMSG(lpszDir || lpszFile, "PathCombine: caller neglected to pass lpszDir or lpszFile"); @@ -421,7 +421,7 @@ STDAPI_(LPWSTR) PathCombineW(LPWSTR lpszDest, LPCWSTR lpszDir, LPCWSTR lpszFile) if (lpszDest) { - TCHAR szTemp[MAX_PATH]; + TCHAR szTemp[MAX_LONGPATH]; LPWSTR pszT; *szTemp = W('\0'); -- cgit v1.2.3