_ASSERTE (NumItems(dllPath) > MAX_LONGPATH);
// if WszGetModuleFileName fails, we return an empty string
- if (!WszGetModuleFileName(GetCLRModule(), dllPath, MAX_PATH)) {
+ if (!WszGetModuleFileName(GetCLRModule(), dllPath, MAX_LONGPATH)) {
dllPath[0] = 0;
}
- dllPath[MAX_PATH] = 0;
+ dllPath[MAX_LONGPATH] = 0;
if(type == ETW::InfoLog::InfoStructs::Callback)
{
DWORD dwSize = 0;
BOOL fExecutableIsKnown = FALSE;
LPWSTR pwzFileName = NULL;
- WCHAR wzBindingConfigPath[MAX_PATH + 1];
+ WCHAR wzBindingConfigPath[MAX_LONGPATH + 1];
BEGIN_SO_INTOLERANT_CODE_NO_THROW_CHECK_THREAD(return COR_E_STACKOVERFLOW);
g_lcid = MAKELCID(LOCALE_INVARIANT, SORT_DEFAULT);
- WszGetModuleFileName(g_hInst, g_FusionDllPath, MAX_PATH);
+ WszGetModuleFileName(g_hInst, g_FusionDllPath, MAX_LONGPATH);
if (!InitFusionCriticalSections()) {
hr = E_OUTOFMEMORY;
if (wszModuleName == NULL)
{
- WCHAR rgwTempName[MAX_PATH] = {0};
+ WCHAR rgwTempName[MAX_LONGPATH] = {0};
DWORD dwTempNameSize = MAX_LONGPATH;
// Leaves trailing backslash on path, producing something like "c:\windows\microsoft.net\framework\v4.0.x86dbg\"
_ASSERTE(cchPathMax >= MAX_LONGPATH);
HRESULT hr;
- ULONG maxLength = MAX_PATH;
+ ULONG maxLength = MAX_LONGPATH;
HMODULE _hmodShell32 = 0;
HMODULE _hmodSHFolder = 0;