Skip to content

Commit 4590acc

Browse files
committed
Add missing define
1 parent 158bfd3 commit 4590acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phlib/hndlinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ NTSTATUS PhpGetObjectName(
329329
ULONG bufferSize;
330330
ULONG attempts = 8;
331331

332-
bufferSize = 0x200;
332+
bufferSize = sizeof(OBJECT_NAME_INFORMATION) + (MAXIMUM_FILENAME_LENGTH * sizeof(WCHAR));
333333
buffer = PhAllocate(bufferSize);
334334

335335
// A loop is needed because the I/O subsystem likes to give us the wrong return lengths... (wj32)

0 commit comments

Comments
 (0)