- Sync with trunk head (r50270)
- This also reverts r49298.

svn path=/branches/cmake-bringup/; revision=50271
This commit is contained in:
Amine Khaldi 2011-01-03 00:33:31 +00:00
commit 6c0c23cb53
482 changed files with 40346 additions and 24711 deletions

View 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;
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,