mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:IO] Fix special case in IopQueryNameInternal() (#7592)
CORE-13525 This case is invoked from NtQueryObject(ObjectNameInformation).
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user