diff --git a/reactos/dll/shellext/ntobjshex/ntobjns.cpp b/reactos/dll/shellext/ntobjshex/ntobjns.cpp index 94eb4819256..4be438a1c63 100644 --- a/reactos/dll/shellext/ntobjshex/ntobjns.cpp +++ b/reactos/dll/shellext/ntobjshex/ntobjns.cpp @@ -1,10 +1,10 @@ /* -* PROJECT: ReactOS shell extensions -* LICENSE: GPL - See COPYING in the top level directory -* FILE: dll\shellext\ntobjshex\ntobjns.cpp -* PURPOSE: NT Object Namespace shell extension -* PROGRAMMERS: David Quintana -*/ + * PROJECT: ReactOS shell extensions + * LICENSE: GPL - See COPYING in the top level directory + * FILE: dll\shellext\ntobjshex\ntobjns.cpp + * PURPOSE: NT Object Namespace shell extension + * PROGRAMMERS: David Quintana + */ #include "precomp.h" #include "ntobjutil.h" diff --git a/reactos/dll/shellext/ntobjshex/ntobjns.h b/reactos/dll/shellext/ntobjshex/ntobjns.h index ba849111c88..32038470e13 100644 --- a/reactos/dll/shellext/ntobjshex/ntobjns.h +++ b/reactos/dll/shellext/ntobjshex/ntobjns.h @@ -1,10 +1,9 @@ /* - * PROJECT: ReactOS system libraries + * PROJECT: ReactOS shell extensions * LICENSE: GPL - See COPYING in the top level directory - * FILE: dll\win32\stobject\stobject.cpp - * PURPOSE: Systray shell service object - * PROGRAMMERS: Robert Naumann - David Quintana + * FILE: dll\shellext\ntobjshex\ntobjns.h + * PURPOSE: NT Object Namespace shell extension + * PROGRAMMERS: David Quintana */ #pragma once diff --git a/reactos/dll/shellext/ntobjshex/ntobjshex.cpp b/reactos/dll/shellext/ntobjshex/ntobjshex.cpp index bc996cd36b6..27f96f359bf 100644 --- a/reactos/dll/shellext/ntobjshex/ntobjshex.cpp +++ b/reactos/dll/shellext/ntobjshex/ntobjshex.cpp @@ -1,10 +1,9 @@ /* - * PROJECT: ReactOS system libraries + * PROJECT: ReactOS shell extensions * LICENSE: GPL - See COPYING in the top level directory - * FILE: dll\win32\stobject\stobject.cpp - * PURPOSE: COM registration services for STobject.dll - * PROGRAMMERS: Robert Naumann - David Quintana + * FILE: dll\shellext\ntobjshex\ntobjshex.cpp + * PURPOSE: NT Object Namespace shell extension + * PROGRAMMERS: David Quintana */ #include "precomp.h" diff --git a/reactos/dll/shellext/ntobjshex/ntobjutil.h b/reactos/dll/shellext/ntobjshex/ntobjutil.h index ff285359262..299c3b066ce 100644 --- a/reactos/dll/shellext/ntobjshex/ntobjutil.h +++ b/reactos/dll/shellext/ntobjshex/ntobjutil.h @@ -22,7 +22,7 @@ extern "C" { #include } -// All the possible values are defined here because I want the type field to be +// All the possible values are defined here because I want the type field to be // "persistable" and not change if more types are added in the future. enum OBJECT_TYPE { DIRECTORY_OBJECT, SYMBOLICLINK_OBJECT, @@ -34,7 +34,7 @@ enum OBJECT_TYPE { UNKNOWN_OBJECT_TYPE = -1 }; -extern const LPCWSTR ObjectTypeNames []; +extern const LPCWSTR ObjectTypeNames[]; #define NT_OBJECT_PIDL_MAGIC (USHORT)0x9A03 @@ -45,25 +45,25 @@ struct NtPidlEntry USHORT magic; // 0x9A03 ~~~ "NTOB" // If this is -1, there will be a NtPidlTypeData following this, and before any other extensions - OBJECT_TYPE objectType; + OBJECT_TYPE objectType; OBJECT_BASIC_INFORMATION objectInformation; USHORT entryNameLength; - WCHAR entryName[0]; + WCHAR entryName[ANYSIZE_ARRAY]; }; struct NtPidlTypeData { USHORT typeNameLength; - WCHAR typeName[0]; + WCHAR typeName[ANYSIZE_ARRAY]; }; struct NtPidlSymlinkData { USHORT targetNameLength; - WCHAR targetName[0]; + WCHAR targetName[ANYSIZE_ARRAY]; }; #include diff --git a/reactos/include/psdk/iprtrmib.h b/reactos/include/psdk/iprtrmib.h index a2298df2d77..73370045367 100644 --- a/reactos/include/psdk/iprtrmib.h +++ b/reactos/include/psdk/iprtrmib.h @@ -327,7 +327,7 @@ typedef struct _MIB_TCPROW_OWNER_PID { typedef struct { DWORD dwNumEntries; - MIB_TCPROW_OWNER_PID table[0]; + MIB_TCPROW_OWNER_PID table[1]; } MIB_TCPTABLE_OWNER_PID, *PMIB_TCPTABLE_OWNER_PID;