mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[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:
parent
b65af38817
commit
9d05ce3297
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue