- npapi.h: Correct definitions of function pointer prototypes.
[reactos.git] / reactos / lib / cmlib / cmdata.h
index 7f2b084..b4a3df7 100644 (file)
@@ -114,7 +114,7 @@ typedef struct _CM_KEY_NODE
     ULONG WorkVar;
     USHORT NameLength;
     USHORT ClassLength;
-    WCHAR Name[0];
+    WCHAR Name[ANYSIZE_ARRAY];
 } CM_KEY_NODE, *PCM_KEY_NODE;
 
 //
@@ -122,7 +122,7 @@ typedef struct _CM_KEY_NODE
 //
 typedef struct _VALUE_LIST_CELL
 {
-    HCELL_INDEX ValueOffset[0];
+    HCELL_INDEX ValueOffset[ANYSIZE_ARRAY];
 } VALUE_LIST_CELL, *PVALUE_LIST_CELL;
 
 //
@@ -137,7 +137,7 @@ typedef struct _CM_KEY_VALUE
     ULONG Type;
     USHORT Flags;
     USHORT Unused1;
-    WCHAR Name[0];
+    WCHAR Name[ANYSIZE_ARRAY];
 } CM_KEY_VALUE, *PCM_KEY_VALUE;
 
 //
@@ -152,7 +152,7 @@ typedef struct _CM_KEY_SECURITY
     ULONG ReferenceCount;
     ULONG DescriptorLength;
     //SECURITY_DESCRIPTOR_RELATIVE Descriptor;
-    UCHAR Data[0];
+    UCHAR Data[ANYSIZE_ARRAY];
 } CM_KEY_SECURITY, *PCM_KEY_SECURITY;
 
 #ifdef CMLIB_HOST