This commit is contained in:
DavidXanatos 2022-04-15 18:37:39 +02:00
parent 520dbc77e2
commit aa19203702
2 changed files with 17 additions and 2 deletions

View File

@ -512,11 +512,21 @@ typedef NTSTATUS (*P_NtImpersonateThread)(
IN PSECURITY_QUALITY_OF_SERVICE SecurityQos);
typedef NTSTATUS (*P_NtCreateSymbolicLinkObject)(
PHANDLE pHandle,
PHANDLE SymbolicLinkHandle,
ACCESS_MASK DesiredAccess,
POBJECT_ATTRIBUTES ObjectAttributes,
PUNICODE_STRING DestinationName);
typedef NTSTATUS (*P_NtOpenSymbolicLinkObject)(
OUT PHANDLE SymbolicLinkHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes);
typedef NTSTATUS (*P_NtQuerySymbolicLinkObject)(
IN HANDLE SymbolicLinkHandle,
IN OUT PUNICODE_STRING LinkTarget,
OUT PULONG ReturnedLength);
typedef NTSTATUS (*P_NtLoadDriver)(
IN PUNICODE_STRING RegistryPath);

View File

@ -286,6 +286,8 @@ COptionsWindow::COptionsWindow(const QSharedPointer<CSbieIni>& pBox, const QStri
LoadConfig();
UpdateCurrentTab();
ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
ui.treeAccess->viewport()->installEventFilter(this);
@ -658,7 +660,10 @@ void COptionsWindow::OnTab()
void COptionsWindow::UpdateCurrentTab()
{
if (ui.tabs->currentWidget() == ui.tabStart)
if (ui.tabs->currentWidget() == ui.tabGeneral) {
ui.chkVmRead->setChecked(GetAccessEntry(eIPC, "", eReadOnly, "$:*") != NULL);
}
else if (ui.tabs->currentWidget() == ui.tabStart)
{
if (GetAccessEntry(eIPC, "!<StartRunAccess>", eClosed, "*") != NULL)
ui.radStartSelected->setChecked(true);