Fix warnings

svn path=/trunk/; revision=25421
This commit is contained in:
Thomas Bluemel 2007-01-10 22:52:07 +00:00
parent f1f9bb147e
commit 11f6279e11
4 changed files with 14 additions and 6 deletions

View file

@ -58,6 +58,9 @@ FsRtlGetNextLargeMcbEntry(IN PLARGE_MCB Mcb,
OUT PLONGLONG SectorCount)
{
KEBUGCHECK(0);
*Vbn = 0;
*Lbn = 0;
*SectorCount= 0;
return FALSE;
}
@ -132,6 +135,8 @@ FsRtlLookupLargeMcbEntry(IN PLARGE_MCB Mcb,
OUT PULONG Index OPTIONAL)
{
KEBUGCHECK(0);
*Lbn = 0;
*SectorCountFromLbn = 0;
return FALSE;
}
@ -146,6 +151,9 @@ FsRtlLookupLastLargeMcbEntryAndIndex(IN PLARGE_MCB OpaqueMcb,
OUT PULONG Index)
{
KEBUGCHECK(0);
*LargeVbn = 0;
*LargeLbn = 0;
*Index = 0;
return FALSE;
}
@ -172,8 +180,8 @@ FsRtlLookupLastMcbEntry(IN PMCB Mcb,
OUT PLBN Lbn)
{
BOOLEAN Return = FALSE;
LONGLONG llVbn;
LONGLONG llLbn;
LONGLONG llVbn = 0;
LONGLONG llLbn = 0;
/* Call the Large version */
Return = FsRtlLookupLastLargeMcbEntry(

View file

@ -27,7 +27,7 @@ ObpIncrementQueryReference(IN POBJECT_HEADER ObjectHeader,
while ((NewValue != 0) && (References = NewValue))
{
/* Increment the number of references */
if (InterlockedCompareExchange(&ObjectNameInfo->QueryReferences,
if (InterlockedCompareExchange((PLONG)&ObjectNameInfo->QueryReferences,
NewValue + 1,
NewValue) == References)
{
@ -56,7 +56,7 @@ ObpDecrementQueryReference(IN POBJECT_HEADER_NAME_INFO HeaderNameInfo)
POBJECT_DIRECTORY Directory;
/* Remove a query reference and check if it was the last one */
if (!InterlockedExchangeAdd(&HeaderNameInfo->QueryReferences, -1))
if (!InterlockedExchangeAdd((PLONG)&HeaderNameInfo->QueryReferences, -1))
{
/* Check if we have a name */
if (HeaderNameInfo->Name.Buffer)

View file

@ -801,7 +801,7 @@ ObpAllocateObject(IN POBJECT_CREATE_INFORMATION ObjectCreateInfo,
if (ObjectType)
{
/* Increase the number of objects of this type */
InterlockedIncrement(&ObjectType->TotalNumberOfObjects);
InterlockedIncrement((PLONG)&ObjectType->TotalNumberOfObjects);
/* Update the high water */
ObjectType->HighWaterNumberOfObjects = max(ObjectType->

View file

@ -238,7 +238,7 @@ ObpDeleteNameCheck(IN PVOID Object)
(ObjectNameInfo->QueryReferences & 0x40000000))
{
/* Add deletion flag */
InterlockedExchangeAdd(&ObjectNameInfo->QueryReferences,
InterlockedExchangeAdd((PLONG)&ObjectNameInfo->QueryReferences,
0xC0000000);
}