Author: dquintana Date: Mon Feb 23 18:14:39 2015 New Revision: 66429
URL: http://svn.reactos.org/svn/reactos?rev=66429&view=rev Log: [NTOBJSHEX] * Missed these sizeof(). * A tiny typo in the comments. CORE-9244
Modified: trunk/reactos/dll/shellext/ntobjshex/ntobjutil.cpp trunk/reactos/dll/shellext/ntobjshex/ntobjutil.h
Modified: trunk/reactos/dll/shellext/ntobjshex/ntobjutil.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/ntobjshex/ntob... ============================================================================== --- trunk/reactos/dll/shellext/ntobjshex/ntobjutil.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/shellext/ntobjshex/ntobjutil.cpp [iso-8859-1] Mon Feb 23 18:14:39 2015 @@ -149,7 +149,7 @@
if (otype < 0) { - entryBufferLength += sizeof(NtPidlTypeData) + sizeof(WCHAR); + entryBufferLength += FIELD_OFFSET(NtPidlTypeData,typeName) + sizeof(WCHAR);
if (info->TypeName.Buffer) { @@ -159,7 +159,7 @@
if (otype == SYMBOLICLINK_OBJECT) { - entryBufferLength += sizeof(NtPidlSymlinkData) + sizeof(WCHAR); + entryBufferLength += FIELD_OFFSET(NtPidlSymlinkData,targetName) + sizeof(WCHAR); }
DWORD access = STANDARD_RIGHTS_READ;
Modified: trunk/reactos/dll/shellext/ntobjshex/ntobjutil.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/ntobjshex/ntob... ============================================================================== --- trunk/reactos/dll/shellext/ntobjshex/ntobjutil.h [iso-8859-1] (original) +++ trunk/reactos/dll/shellext/ntobjshex/ntobjutil.h [iso-8859-1] Mon Feb 23 18:14:39 2015 @@ -41,7 +41,7 @@
#include <pshpack1.h>
-// NT OBJECT browsere +// NT OBJECT browser struct NtPidlEntry { USHORT cb; @@ -69,7 +69,7 @@ WCHAR targetName[ANYSIZE_ARRAY]; };
-// REGISTRY browsere +// REGISTRY browser enum REG_ENTRY_TYPE { REG_ENTRY_KEY,