[CMAKE]
[reactos.git] / drivers / storage / classpnp / dictlib.c
index ba479fe..310b227 100644 (file)
@@ -26,30 +26,27 @@ Revision History:
 #include <ntddk.h>
 #include <classpnp.h>
 
-#define DICTIONARY_SIGNATURE (((ULONG)'dict' << 32) + 'sig ')
+#define DICTIONARY_SIGNATURE 'dsig'
 
-struct _DICTIONARY_HEADER {
+typedef struct _DICTIONARY_HEADER {
     struct _DICTIONARY_HEADER* Next;
     ULONGLONG Key;
     UCHAR Data[0];
-};
+} DICTIONARY_HEADER, *PDICTIONARY_HEADER;
 
-struct _DICTIONARY_HEADER;
-typedef struct _DICTIONARY_HEADER DICTIONARY_HEADER, *PDICTIONARY_HEADER;
 
-\f
 VOID
 InitializeDictionary(
     IN PDICTIONARY Dictionary
     )
 {
-    RtlZeroMemory(Dictionary, sizeof(Dictionary));
+    RtlZeroMemory(Dictionary, sizeof(DICTIONARY));
     Dictionary->Signature = DICTIONARY_SIGNATURE;
     KeInitializeSpinLock(&Dictionary->SpinLock);
     return;
 }
 
-\f
+
 BOOLEAN
 TestDictionarySignature(
     IN PDICTIONARY Dictionary
@@ -136,7 +133,7 @@ AllocateDictionaryEntry(
     return status;
 }
 
-\f
+
 PVOID
 GetDictionaryEntry(
     IN PDICTIONARY Dictionary,
@@ -168,7 +165,7 @@ GetDictionaryEntry(
     return data;
 }
 
-\f
+
 VOID
 FreeDictionaryEntry(
     IN PDICTIONARY Dictionary,