authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-10-08 15:38:17-07:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-10-08 15:40:56-07:00
log1d1ec2309c964273dd37a394741808183d66f066
treed021a4bb4b519d31be75e4fc94d6909ce5d67843
parentf7ff2aeb9054db022d3814bc769e3a525c6127cc

NtQueryObject: make Handle param optional

Some information classes are intended to be called with a null handle, since they don't use the handle param, e.g. OBJECT_TYPES_INFORMATION

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/windows/ntdll.zig+1-1
......@@ -242,7 +242,7 @@ pub extern "ntdll" fn NtUnlockFile(
242242) callconv(.winapi) NTSTATUS;
243243
244244pub extern "ntdll" fn NtQueryObject(
245 Handle: HANDLE,
245 Handle: ?HANDLE,
246246 ObjectInformationClass: OBJECT.INFORMATION_CLASS,
247247 ObjectInformation: ?PVOID,
248248 ObjectInformationLength: ULONG,