commit
842048485a
|
@ -323,7 +323,7 @@ ULONGLONG* findChromeTarget(unsigned char* addr)
|
||||||
for (j = i + 1; j < MAX_FUNC_OPS && !ChromeTarget; j++) {
|
for (j = i + 1; j < MAX_FUNC_OPS && !ChromeTarget; j++) {
|
||||||
LDR ldr;
|
LDR ldr;
|
||||||
ldr.OP = ((ULONG*)addr)[j];
|
ldr.OP = ((ULONG*)addr)[j];
|
||||||
if (IS_LDR(ldr) && ldr.Rn == adrp.Rd) { // ldr.Rt can be different idealy x0 or its same as adrp.Rd
|
if (IS_LDR(ldr) && ldr.Rn == adrp.Rd) { // ldr.Rt can be different ideally x0 or its same as adrp.Rd
|
||||||
LONG delta = (adrp.immHi << 2 | adrp.immLo) << 12;
|
LONG delta = (adrp.immHi << 2 | adrp.immLo) << 12;
|
||||||
delta += (ldr.imm12 << ldr.size);
|
delta += (ldr.imm12 << ldr.size);
|
||||||
target = ((((UINT_PTR) & ((ULONG*)addr)[i]) & ~0xFFF) + delta);
|
target = ((((UINT_PTR) & ((ULONG*)addr)[i]) & ~0xFFF) + delta);
|
||||||
|
|
|
@ -367,7 +367,7 @@ _FX void Dll_InitInjected(void)
|
||||||
//
|
//
|
||||||
// //
|
// //
|
||||||
// // instead of using a separate namespace
|
// // instead of using a separate namespace
|
||||||
// // just replace all \ with _ and use it as a sufix rather then an actual path
|
// // just replace all \ with _ and use it as a suffix rather then an actual path
|
||||||
// // similarly a its done for named pipes already
|
// // similarly a its done for named pipes already
|
||||||
// // this approach can help to reduce the footprint when running in portable mode
|
// // this approach can help to reduce the footprint when running in portable mode
|
||||||
// // alternatively we could create volatile entries under AppContainerNamedObjects
|
// // alternatively we could create volatile entries under AppContainerNamedObjects
|
||||||
|
|
|
@ -351,7 +351,7 @@ typedef union _FLT_PARAMETERS {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Type3InputBuffer: name changed from IO_STACK_LOCATION parameters
|
// Type3InputBuffer: name changed from IO_STACK_LOCATION parameters
|
||||||
// Note for this mothod, both input & output buffers are 'raw',
|
// Note for this method, both input & output buffers are 'raw',
|
||||||
// i.e. unbuffered, and should be treated with caution ( either
|
// i.e. unbuffered, and should be treated with caution ( either
|
||||||
// probed & captured before access, or use try-except to enclose
|
// probed & captured before access, or use try-except to enclose
|
||||||
// access to the buffer)
|
// access to the buffer)
|
||||||
|
@ -451,7 +451,7 @@ typedef union _FLT_PARAMETERS {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Type3InputBuffer: name changed from IO_STACK_LOCATION parameters
|
// Type3InputBuffer: name changed from IO_STACK_LOCATION parameters
|
||||||
// Note for this mothod, both input & output buffers are 'raw',
|
// Note for this method, both input & output buffers are 'raw',
|
||||||
// i.e. unbuffered, and should be treated with caution ( either
|
// i.e. unbuffered, and should be treated with caution ( either
|
||||||
// probed & captured before access, or use try-except to enclose
|
// probed & captured before access, or use try-except to enclose
|
||||||
// access to the buffer)
|
// access to the buffer)
|
||||||
|
|
|
@ -1065,7 +1065,7 @@ ULONG SbieIniServer::SetSetting(MSG_HEADER* msg)
|
||||||
SIniSection* pSection = GetIniSection(req->section, true);
|
SIniSection* pSection = GetIniSection(req->section, true);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check if this is a repalce section request and if so execute it
|
// Check if this is a replace section request and if so execute it
|
||||||
//
|
//
|
||||||
|
|
||||||
if (wcslen(req->setting) == 0 && have_value)
|
if (wcslen(req->setting) == 0 && have_value)
|
||||||
|
|
|
@ -295,7 +295,7 @@ void COnlineUpdater::LoadState()
|
||||||
QString COnlineUpdater::GetOnNewUpdateOption() const
|
QString COnlineUpdater::GetOnNewUpdateOption() const
|
||||||
{
|
{
|
||||||
QString ReleaseChannel = theConf->GetString("Options/ReleaseChannel", "stable");
|
QString ReleaseChannel = theConf->GetString("Options/ReleaseChannel", "stable");
|
||||||
if (ReleaseChannel != "preview" && (!g_CertInfo.active || g_CertInfo.expired)) // allow revisions for previwe channel
|
if (ReleaseChannel != "preview" && (!g_CertInfo.active || g_CertInfo.expired)) // allow revisions for preview channel
|
||||||
return "ignore"; // this service requires a valid certificate
|
return "ignore"; // this service requires a valid certificate
|
||||||
return theConf->GetString("Options/OnNewUpdate", "ignore");
|
return theConf->GetString("Options/OnNewUpdate", "ignore");
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ let message = tr('Internet Access restrictions are in effect for the sandbox in
|
||||||
{ id: 'no', name: tr('No'), type: 'radio' },
|
{ id: 'no', name: tr('No'), type: 'radio' },
|
||||||
];
|
];
|
||||||
|
|
||||||
message += '\n\n' + tr('Would you like to allow %1 to access the interent in future?', processName);
|
message += '\n\n' + tr('Would you like to allow %1 to access the internet in future?', processName);
|
||||||
let ret = wizard.showForm(form, message);
|
let ret = wizard.showForm(form, message);
|
||||||
if (ret['yes'] == true) {
|
if (ret['yes'] == true) {
|
||||||
let box = sbie.getBox(boxName);
|
let box = sbie.getBox(boxName);
|
||||||
|
|
|
@ -1067,7 +1067,7 @@ void COptionsWindow::showTab(const QString& Name)
|
||||||
SafeShow(this);
|
SafeShow(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void COptionsWindow::SetProgramItem(QString Program, QTreeWidgetItem* pItem, int Column, const QString& Sufix, bool bList)
|
void COptionsWindow::SetProgramItem(QString Program, QTreeWidgetItem* pItem, int Column, const QString& Suffix, bool bList)
|
||||||
{
|
{
|
||||||
pItem->setData(Column, Qt::UserRole, Program);
|
pItem->setData(Column, Qt::UserRole, Program);
|
||||||
if (Program.left(1) == "<")
|
if (Program.left(1) == "<")
|
||||||
|
@ -1076,7 +1076,7 @@ void COptionsWindow::SetProgramItem(QString Program, QTreeWidgetItem* pItem, int
|
||||||
Program = tr("All Programs");
|
Program = tr("All Programs");
|
||||||
else if(bList)
|
else if(bList)
|
||||||
m_Programs.insert(Program);
|
m_Programs.insert(Program);
|
||||||
pItem->setText(Column, Program + Sufix);
|
pItem->setText(Column, Program + Suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString COptionsWindow::SelectProgram(bool bOrGroup)
|
QString COptionsWindow::SelectProgram(bool bOrGroup)
|
||||||
|
|
|
@ -355,7 +355,7 @@ protected:
|
||||||
void CloseCopyEdit(bool bSave = true);
|
void CloseCopyEdit(bool bSave = true);
|
||||||
void CloseCopyEdit(QTreeWidgetItem* pItem, bool bSave = true);
|
void CloseCopyEdit(QTreeWidgetItem* pItem, bool bSave = true);
|
||||||
|
|
||||||
void SetProgramItem(QString Program, QTreeWidgetItem* pItem, int Column, const QString& Sufix = QString(), bool bList = true);
|
void SetProgramItem(QString Program, QTreeWidgetItem* pItem, int Column, const QString& Suffix = QString(), bool bList = true);
|
||||||
|
|
||||||
QString SelectProgram(bool bOrGroup = true);
|
QString SelectProgram(bool bOrGroup = true);
|
||||||
void AddProgramToGroup(const QString& Program, const QString& Group);
|
void AddProgramToGroup(const QString& Program, const QString& Group);
|
||||||
|
|
|
@ -83,7 +83,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||||
uSize = _wtoi64(size.c_str());
|
uSize = _wtoi64(size.c_str());
|
||||||
|
|
||||||
//
|
//
|
||||||
// perpare disk IO
|
// prepare disk IO
|
||||||
//
|
//
|
||||||
|
|
||||||
CAbstractIO* pIO = NULL;
|
CAbstractIO* pIO = NULL;
|
||||||
|
|
Loading…
Reference in New Issue