mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:IO] Fix special case in IopQueryNameInternal() (#7592)
CORE-13525 This case is invoked from NtQueryObject(ObjectNameInformation).
This commit is contained in:
parent
02a394ea57
commit
6363f7820d
1 changed files with 2 additions and 1 deletions
|
@ -2108,10 +2108,11 @@ IopQueryNameInternal(IN PVOID ObjectBody,
|
|||
_SEH2_LEAVE;
|
||||
}
|
||||
|
||||
/* In such case, zero output */
|
||||
/* In such case, zero the output and reset the status */
|
||||
LocalReturnLength = FIELD_OFFSET(FILE_NAME_INFORMATION, FileName);
|
||||
LocalFileInfo->FileNameLength = 0;
|
||||
LocalFileInfo->FileName[0] = OBJ_NAME_PATH_SEPARATOR;
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue