[NTOSKRNL]: Fix ntdll:om winetest. When querying for filenames if the caller did not specify a buffer large enough (which they normally don't, initially), we would just fail but not tell them how large to request it (so they'd get back an uninitailized huge value).

svn path=/trunk/; revision=55728
This commit is contained in:
Alex Ionescu 2012-02-20 00:11:24 +00:00
parent b65af38817
commit 9d05ce3297
2 changed files with 2 additions and 1 deletions

View file

@ -1317,6 +1317,7 @@ IopQueryNameFile(IN PVOID ObjectBody,
if (Length < sizeof(OBJECT_NAME_INFORMATION))
{
/* Wrong length, fail */
*ReturnLength = sizeof(OBJECT_NAME_INFORMATION);
return STATUS_INFO_LENGTH_MISMATCH;
}

View file

@ -1120,7 +1120,7 @@ ObQueryNameString(IN PVOID Object,
ObjectNameInfo->Name.MaximumLength = (USHORT)(NameSize +
sizeof(UNICODE_NULL));
ObjectNameInfo->Name.Buffer = ObjectName;
_SEH2_YIELD(return STATUS_SUCCESS);
Status = STATUS_SUCCESS;
}
else
{