Skip to content

Commit 401d755

Browse files
committed
[*] fix NtQueryInformationProcess ZwQueryInformationProcess return value
1 parent f0f558f commit 401d755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/os/windows/dlls/ntdll.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _QueryInformationProcess(ql: Qiling, address: int, params):
9393
def hook_ZwQueryInformationProcess(ql: Qiling, address: int, params):
9494
# TODO have no idea if is cdecl or stdcall
9595

96-
_QueryInformationProcess(ql, address, params)
96+
return _QueryInformationProcess(ql, address, params)
9797

9898
# __kernel_entry NTSTATUS NtQueryInformationProcess(
9999
# IN HANDLE ProcessHandle,
@@ -112,7 +112,7 @@ def hook_ZwQueryInformationProcess(ql: Qiling, address: int, params):
112112
def hook_NtQueryInformationProcess(ql: Qiling, address: int, params):
113113
# TODO have no idea if is cdecl or stdcall
114114

115-
_QueryInformationProcess(ql, address, params)
115+
return _QueryInformationProcess(ql, address, params)
116116

117117
def _QuerySystemInformation(ql: Qiling, address: int, params):
118118
siClass = params["SystemInformationClass"]

0 commit comments

Comments
 (0)