mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed a few compiler warinings.
svn path=/trunk/; revision=2379
This commit is contained in:
parent
57300d2523
commit
303f10c6fd
1 changed files with 10 additions and 10 deletions
|
@ -698,14 +698,14 @@ DWORD FatGetFatEntry(DWORD nCluster)
|
||||||
|
|
||||||
if (ThisFatEntOffset == (FatVolumeBootSector->BytesPerSector - 1))
|
if (ThisFatEntOffset == (FatVolumeBootSector->BytesPerSector - 1))
|
||||||
{
|
{
|
||||||
if (!ReadMultipleLogicalSectors(ThisFatSecNum, 2, DISKREADBUFFER))
|
if (!ReadMultipleLogicalSectors(ThisFatSecNum, 2, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!ReadLogicalSector(ThisFatSecNum, DISKREADBUFFER))
|
if (!ReadLogicalSector(ThisFatSecNum, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -725,7 +725,7 @@ DWORD FatGetFatEntry(DWORD nCluster)
|
||||||
ThisFatSecNum = FatVolumeBootSector->ReservedSectors + (FatOffset / FatVolumeBootSector->BytesPerSector);
|
ThisFatSecNum = FatVolumeBootSector->ReservedSectors + (FatOffset / FatVolumeBootSector->BytesPerSector);
|
||||||
ThisFatEntOffset = (FatOffset % FatVolumeBootSector->BytesPerSector);
|
ThisFatEntOffset = (FatOffset % FatVolumeBootSector->BytesPerSector);
|
||||||
|
|
||||||
if (!ReadLogicalSector(ThisFatSecNum, DISKREADBUFFER))
|
if (!ReadLogicalSector(ThisFatSecNum, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -740,7 +740,7 @@ DWORD FatGetFatEntry(DWORD nCluster)
|
||||||
ThisFatSecNum = FatVolumeBootSector->ReservedSectors + (FatOffset / FatVolumeBootSector->BytesPerSector);
|
ThisFatSecNum = FatVolumeBootSector->ReservedSectors + (FatOffset / FatVolumeBootSector->BytesPerSector);
|
||||||
ThisFatEntOffset = (FatOffset % FatVolumeBootSector->BytesPerSector);
|
ThisFatEntOffset = (FatOffset % FatVolumeBootSector->BytesPerSector);
|
||||||
|
|
||||||
if (!ReadLogicalSector(ThisFatSecNum, DISKREADBUFFER))
|
if (!ReadLogicalSector(ThisFatSecNum, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -885,12 +885,12 @@ BOOL FatReadCluster(ULONG ClusterNumber, PVOID Buffer)
|
||||||
|
|
||||||
DbgPrint((DPRINT_FILESYSTEM, "FatReadCluster() ClusterNumber = %d Buffer = 0x%x ClusterStartSector = %d\n", ClusterNumber, Buffer, ClusterStartSector));
|
DbgPrint((DPRINT_FILESYSTEM, "FatReadCluster() ClusterNumber = %d Buffer = 0x%x ClusterStartSector = %d\n", ClusterNumber, Buffer, ClusterStartSector));
|
||||||
|
|
||||||
if (!ReadMultipleLogicalSectors(ClusterStartSector, FatVolumeBootSector->SectorsPerCluster, DISKREADBUFFER))
|
if (!ReadMultipleLogicalSectors(ClusterStartSector, FatVolumeBootSector->SectorsPerCluster, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(Buffer, DISKREADBUFFER, FatVolumeBootSector->SectorsPerCluster * FatVolumeBootSector->BytesPerSector);
|
memcpy(Buffer, (PVOID)DISKREADBUFFER, FatVolumeBootSector->SectorsPerCluster * FatVolumeBootSector->BytesPerSector);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -917,12 +917,12 @@ BOOL FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID
|
||||||
//
|
//
|
||||||
// Read cluster into memory
|
// Read cluster into memory
|
||||||
//
|
//
|
||||||
if (!ReadMultipleLogicalSectors(ClusterStartSector, FatVolumeBootSector->SectorsPerCluster, DISKREADBUFFER))
|
if (!ReadMultipleLogicalSectors(ClusterStartSector, FatVolumeBootSector->SectorsPerCluster, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(Buffer, DISKREADBUFFER, FatVolumeBootSector->SectorsPerCluster * FatVolumeBootSector->BytesPerSector);
|
memcpy(Buffer, (PVOID)DISKREADBUFFER, FatVolumeBootSector->SectorsPerCluster * FatVolumeBootSector->BytesPerSector);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Decrement count of clusters left to read
|
// Decrement count of clusters left to read
|
||||||
|
@ -965,12 +965,12 @@ BOOL FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Leng
|
||||||
|
|
||||||
ClusterStartSector = ((ClusterNumber - 2) * FatVolumeBootSector->SectorsPerCluster) + DataSectorStart;
|
ClusterStartSector = ((ClusterNumber - 2) * FatVolumeBootSector->SectorsPerCluster) + DataSectorStart;
|
||||||
|
|
||||||
if (!ReadMultipleLogicalSectors(ClusterStartSector, FatVolumeBootSector->SectorsPerCluster, DISKREADBUFFER))
|
if (!ReadMultipleLogicalSectors(ClusterStartSector, FatVolumeBootSector->SectorsPerCluster, (PVOID)DISKREADBUFFER))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(Buffer, DISKREADBUFFER + StartingOffset, Length);
|
memcpy(Buffer, (PVOID)(DISKREADBUFFER + StartingOffset), Length);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue