mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
[CLASSPNP]
- Use correct type in sizeof expression (CID 1646 and 10401). - Simplify signature define (CID 3653 and 3654). - Remove funky 0xFF characters. svn path=/trunk/; revision=50076
This commit is contained in:
parent
6c76be5e63
commit
95e952c388
|
@ -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;
|
||||
|
||||
|
||||
VOID
|
||||
InitializeDictionary(
|
||||
IN PDICTIONARY Dictionary
|
||||
)
|
||||
{
|
||||
RtlZeroMemory(Dictionary, sizeof(Dictionary));
|
||||
RtlZeroMemory(Dictionary, sizeof(DICTIONARY));
|
||||
Dictionary->Signature = DICTIONARY_SIGNATURE;
|
||||
KeInitializeSpinLock(&Dictionary->SpinLock);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOLEAN
|
||||
TestDictionarySignature(
|
||||
IN PDICTIONARY Dictionary
|
||||
|
@ -136,7 +133,7 @@ AllocateDictionaryEntry(
|
|||
return status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
PVOID
|
||||
GetDictionaryEntry(
|
||||
IN PDICTIONARY Dictionary,
|
||||
|
@ -168,7 +165,7 @@ GetDictionaryEntry(
|
|||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
VOID
|
||||
FreeDictionaryEntry(
|
||||
IN PDICTIONARY Dictionary,
|
||||
|
|
Loading…
Reference in a new issue