Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed May 4, 2020
2 parents 77cb202 + 0eee88d commit e50af36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/OrcCommand/WolfExecution_Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "stdafx.h"

#include <string>

#include "WolfLauncher.h"

Expand All @@ -23,8 +22,12 @@
#include "ConfigFile.h"
#include "ConfigFile_WOLFLauncher.h"

#include <boost/tokenizer.hpp>
#include <safeint.h>

#include <algorithm>
#include <string>

#include <boost/tokenizer.hpp>

using namespace std;

Expand Down Expand Up @@ -566,7 +569,7 @@ HRESULT WolfExecution::SetRestrictionsFromConfig(const ConfigItem& item)
m_Restrictions.ExtendedLimits.emplace();
ZeroMemory(&m_Restrictions.ExtendedLimits.value(), sizeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION));
}
m_Restrictions.ExtendedLimits->JobMemoryLimit = li.LowPart;
m_Restrictions.ExtendedLimits->JobMemoryLimit = msl::utilities::SafeInt<SIZE_T>(li.QuadPart);
m_Restrictions.ExtendedLimits->BasicLimitInformation.LimitFlags |= JOB_OBJECT_LIMIT_JOB_MEMORY;
}

Expand All @@ -589,7 +592,7 @@ HRESULT WolfExecution::SetRestrictionsFromConfig(const ConfigItem& item)
m_Restrictions.ExtendedLimits.emplace();
ZeroMemory(&m_Restrictions.ExtendedLimits.value(), sizeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION));
}
m_Restrictions.ExtendedLimits->ProcessMemoryLimit = li.LowPart;
m_Restrictions.ExtendedLimits->ProcessMemoryLimit = msl::utilities::SafeInt<SIZE_T>(li.QuadPart);
m_Restrictions.ExtendedLimits->BasicLimitInformation.LimitFlags |= JOB_OBJECT_LIMIT_PROCESS_MEMORY;
}

Expand Down
2 changes: 1 addition & 1 deletion src/OrcLib/FileFind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3657,7 +3657,7 @@ HRESULT FileFind::FindMatch(MFTRecord* pElt, bool& bStop, FileFind::FoundMatchCa
PFILE_NAME aName = *it;

if (!m_InLocationBuilder(aName))
return S_OK;
continue;

std::wstring strName;
std::wstring strPath;
Expand Down

0 comments on commit e50af36

Please sign in to comment.