mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:16:04 +00:00
[NTOBJSHEX]
* Missed these sizeof(). * A tiny typo in the comments. CORE-9244 svn path=/trunk/; revision=66429
This commit is contained in:
parent
f0667d8ccd
commit
8a7bac06a7
2 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ HRESULT EnumerateNtDirectory(HDPA hdpa, PCWSTR path, UINT * hdpaCount)
|
||||||
|
|
||||||
if (otype < 0)
|
if (otype < 0)
|
||||||
{
|
{
|
||||||
entryBufferLength += sizeof(NtPidlTypeData) + sizeof(WCHAR);
|
entryBufferLength += FIELD_OFFSET(NtPidlTypeData,typeName) + sizeof(WCHAR);
|
||||||
|
|
||||||
if (info->TypeName.Buffer)
|
if (info->TypeName.Buffer)
|
||||||
{
|
{
|
||||||
|
@ -159,7 +159,7 @@ HRESULT EnumerateNtDirectory(HDPA hdpa, PCWSTR path, UINT * hdpaCount)
|
||||||
|
|
||||||
if (otype == SYMBOLICLINK_OBJECT)
|
if (otype == SYMBOLICLINK_OBJECT)
|
||||||
{
|
{
|
||||||
entryBufferLength += sizeof(NtPidlSymlinkData) + sizeof(WCHAR);
|
entryBufferLength += FIELD_OFFSET(NtPidlSymlinkData,targetName) + sizeof(WCHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD access = STANDARD_RIGHTS_READ;
|
DWORD access = STANDARD_RIGHTS_READ;
|
||||||
|
|
|
@ -41,7 +41,7 @@ extern const LPCWSTR ObjectTypeNames[];
|
||||||
|
|
||||||
#include <pshpack1.h>
|
#include <pshpack1.h>
|
||||||
|
|
||||||
// NT OBJECT browsere
|
// NT OBJECT browser
|
||||||
struct NtPidlEntry
|
struct NtPidlEntry
|
||||||
{
|
{
|
||||||
USHORT cb;
|
USHORT cb;
|
||||||
|
@ -69,7 +69,7 @@ struct NtPidlSymlinkData
|
||||||
WCHAR targetName[ANYSIZE_ARRAY];
|
WCHAR targetName[ANYSIZE_ARRAY];
|
||||||
};
|
};
|
||||||
|
|
||||||
// REGISTRY browsere
|
// REGISTRY browser
|
||||||
enum REG_ENTRY_TYPE
|
enum REG_ENTRY_TYPE
|
||||||
{
|
{
|
||||||
REG_ENTRY_KEY,
|
REG_ENTRY_KEY,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue