mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:35:07 +00:00
Driver: Fix warnings
This commit is contained in:
parent
e5ae4a7506
commit
59b3031623
@ -408,7 +408,7 @@ static void NTAPI fort_device_load_expand(PVOID parameter)
|
|||||||
|
|
||||||
FORT_API NTSTATUS fort_device_load(void)
|
FORT_API NTSTATUS fort_device_load(void)
|
||||||
{
|
{
|
||||||
NTSTATUS status_expand;
|
NTSTATUS status_expand = STATUS_SUCCESS;
|
||||||
|
|
||||||
const NTSTATUS status = KeExpandKernelStackAndCallout(
|
const NTSTATUS status = KeExpandKernelStackAndCallout(
|
||||||
&fort_device_load_expand, &status_expand, KERNEL_STACK_SIZE);
|
&fort_device_load_expand, &status_expand, KERNEL_STACK_SIZE);
|
||||||
|
@ -577,9 +577,10 @@ static void fort_pstree_check_proc_parent_inheritance_conf(PFORT_PSTREE ps_tree,
|
|||||||
const HANDLE parentHandle = OpenProcessById(parent_process_id);
|
const HANDLE parentHandle = OpenProcessById(parent_process_id);
|
||||||
if (parentHandle != NULL) {
|
if (parentHandle != NULL) {
|
||||||
fort_pstree_check_proc_conf(ps_tree, conf_ref, parent, parentHandle, parent_process_id);
|
fort_pstree_check_proc_conf(ps_tree, conf_ref, parent, parentHandle, parent_process_id);
|
||||||
}
|
|
||||||
ZwClose(parentHandle);
|
ZwClose(parentHandle);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Set process inheritance by parent */
|
/* Set process inheritance by parent */
|
||||||
KeAcquireInStackQueuedSpinLock(&ps_tree->lock, &lock_queue);
|
KeAcquireInStackQueuedSpinLock(&ps_tree->lock, &lock_queue);
|
||||||
@ -772,15 +773,15 @@ static NTSTATUS fort_pstree_enum_process(PFORT_PSTREE ps_tree, PSYSTEM_PROCESSES
|
|||||||
if (fort_pstree_svchost_path_check(path)) {
|
if (fort_pstree_svchost_path_check(path)) {
|
||||||
status = GetProcessPathArgs(processHandle, path, commandLine);
|
status = GetProcessPathArgs(processHandle, path, commandLine);
|
||||||
if (!NT_SUCCESS(status)) {
|
if (!NT_SUCCESS(status)) {
|
||||||
LOG("PsTree: Process Args Error: pid=%d %x\n", processEntry->ProcessId, status);
|
LOG("PsTree: Process Args Error: pid=%d %x\n", (DWORD) processEntry->ProcessId, status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
path->Length = 0;
|
path->Length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const DWORD processId = (DWORD) (ptrdiff_t) processEntry->ProcessId;
|
const DWORD processId = (DWORD) processEntry->ProcessId;
|
||||||
const DWORD parentProcessId = (DWORD) (ptrdiff_t) processEntry->ParentProcessId;
|
const DWORD parentProcessId = (DWORD) processEntry->ParentProcessId;
|
||||||
|
|
||||||
const tommy_key_t pid_hash = fort_pstree_proc_hash(processId);
|
const tommy_key_t pid_hash = fort_pstree_proc_hash(processId);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user