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:38:52-07:00
logf3a696e50ebeb59c387d5d250811677e3a8d8ec3
treeafac213e83fab488244379e6fecca6e40b1dbc3f
parent8d97f05662dcae88bde353224d97a2c72b93bac5

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,