mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
- Fix a totally broken case when a directory has no name in ObQueryNameString. Spotted by Coverity.
svn path=/trunk/; revision=53535
This commit is contained in:
@@ -1126,8 +1126,11 @@ ObQueryNameString(IN PVOID Object,
|
||||
else
|
||||
{
|
||||
/* Directory without a name, we add "..." */
|
||||
ObjectName -= sizeof(L"...");
|
||||
ObjectName = L"...";
|
||||
ObjectName = (PWCH)((ULONG_PTR)ObjectName -
|
||||
sizeof(L"...") + sizeof(UNICODE_NULL));
|
||||
RtlCopyMemory(ObjectName,
|
||||
L"...",
|
||||
sizeof(L"...") + sizeof(UNICODE_NULL));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user