[NTOBJSHEX]

* Missed these sizeof().
* A tiny typo in the comments.
CORE-9244

svn path=/trunk/; revision=66429
This commit is contained in:
David Quintana 2015-02-23 18:14:39 +00:00
parent f0667d8ccd
commit 8a7bac06a7
2 changed files with 4 additions and 4 deletions

View file

@ -149,7 +149,7 @@ HRESULT EnumerateNtDirectory(HDPA hdpa, PCWSTR path, UINT * hdpaCount)
if (otype < 0)
{
entryBufferLength += sizeof(NtPidlTypeData) + sizeof(WCHAR);
entryBufferLength += FIELD_OFFSET(NtPidlTypeData,typeName) + sizeof(WCHAR);
if (info->TypeName.Buffer)
{
@ -159,7 +159,7 @@ HRESULT EnumerateNtDirectory(HDPA hdpa, PCWSTR path, UINT * hdpaCount)
if (otype == SYMBOLICLINK_OBJECT)
{
entryBufferLength += sizeof(NtPidlSymlinkData) + sizeof(WCHAR);
entryBufferLength += FIELD_OFFSET(NtPidlSymlinkData,targetName) + sizeof(WCHAR);
}
DWORD access = STANDARD_RIGHTS_READ;

View file

@ -41,7 +41,7 @@ extern const LPCWSTR ObjectTypeNames[];
#include <pshpack1.h>
// NT OBJECT browsere
// NT OBJECT browser
struct NtPidlEntry
{
USHORT cb;
@ -69,7 +69,7 @@ struct NtPidlSymlinkData
WCHAR targetName[ANYSIZE_ARRAY];
};
// REGISTRY browsere
// REGISTRY browser
enum REG_ENTRY_TYPE
{
REG_ENTRY_KEY,