Author: weiden Date: Thu Jan 11 01:52:07 2007 New Revision: 25421
URL: http://svn.reactos.org/svn/reactos?rev=25421&view=rev Log: Fix warnings
Modified: trunk/reactos/ntoskrnl/fsrtl/largemcb.c trunk/reactos/ntoskrnl/include/internal/ob_x.h trunk/reactos/ntoskrnl/ob/oblife.c trunk/reactos/ntoskrnl/ob/obname.c
Modified: trunk/reactos/ntoskrnl/fsrtl/largemcb.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/largemcb.c?r... ============================================================================== --- trunk/reactos/ntoskrnl/fsrtl/largemcb.c (original) +++ trunk/reactos/ntoskrnl/fsrtl/largemcb.c Thu Jan 11 01:52:07 2007 @@ -58,6 +58,9 @@ OUT PLONGLONG SectorCount) { KEBUGCHECK(0); + *Vbn = 0; + *Lbn = 0; + *SectorCount= 0; return FALSE; }
@@ -132,6 +135,8 @@ OUT PULONG Index OPTIONAL) { KEBUGCHECK(0); + *Lbn = 0; + *SectorCountFromLbn = 0; return FALSE; }
@@ -146,6 +151,9 @@ OUT PULONG Index) { KEBUGCHECK(0); + *LargeVbn = 0; + *LargeLbn = 0; + *Index = 0; return FALSE; }
@@ -172,8 +180,8 @@ OUT PLBN Lbn) { BOOLEAN Return = FALSE; - LONGLONG llVbn; - LONGLONG llLbn; + LONGLONG llVbn = 0; + LONGLONG llLbn = 0;
/* Call the Large version */ Return = FsRtlLookupLastLargeMcbEntry(
Modified: trunk/reactos/ntoskrnl/include/internal/ob_x.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/o... ============================================================================== --- trunk/reactos/ntoskrnl/include/internal/ob_x.h (original) +++ trunk/reactos/ntoskrnl/include/internal/ob_x.h Thu Jan 11 01:52:07 2007 @@ -27,7 +27,7 @@ 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 @@ 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)
Modified: trunk/reactos/ntoskrnl/ob/oblife.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=25... ============================================================================== --- trunk/reactos/ntoskrnl/ob/oblife.c (original) +++ trunk/reactos/ntoskrnl/ob/oblife.c Thu Jan 11 01:52:07 2007 @@ -801,7 +801,7 @@ 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->
Modified: trunk/reactos/ntoskrnl/ob/obname.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obname.c?rev=25... ============================================================================== --- trunk/reactos/ntoskrnl/ob/obname.c (original) +++ trunk/reactos/ntoskrnl/ob/obname.c Thu Jan 11 01:52:07 2007 @@ -238,7 +238,7 @@ (ObjectNameInfo->QueryReferences & 0x40000000)) { /* Add deletion flag */ - InterlockedExchangeAdd(&ObjectNameInfo->QueryReferences, + InterlockedExchangeAdd((PLONG)&ObjectNameInfo->QueryReferences, 0xC0000000); }