mirror of
https://github.com/reactos/reactos.git
synced 2025-05-21 18:16:07 +00:00
parent
309f707e7f
commit
25e1235fe7
3 changed files with 3 additions and 17 deletions
|
@ -522,7 +522,7 @@ BOOLEAN Ext2ReadFileBig(PEXT2_FILE_INFO Ext2FileInfo, ULONGLONG BytesToRead, ULO
|
||||||
BlockNumber = Ext2FileInfo->FileBlockList[BlockNumberIndex];
|
BlockNumber = Ext2FileInfo->FileBlockList[BlockNumberIndex];
|
||||||
|
|
||||||
//
|
//
|
||||||
// Now do the read and update BytesRead, BytesToRead, FilePointer, & Buffer
|
// Now do the read and update BytesRead & FilePointer
|
||||||
//
|
//
|
||||||
if (!Ext2ReadPartialBlock(Volume, BlockNumber, 0, (ULONG)BytesToRead, Buffer))
|
if (!Ext2ReadPartialBlock(Volume, BlockNumber, 0, (ULONG)BytesToRead, Buffer))
|
||||||
{
|
{
|
||||||
|
@ -533,8 +533,6 @@ BOOLEAN Ext2ReadFileBig(PEXT2_FILE_INFO Ext2FileInfo, ULONGLONG BytesToRead, ULO
|
||||||
*BytesRead += BytesToRead;
|
*BytesRead += BytesToRead;
|
||||||
}
|
}
|
||||||
Ext2FileInfo->FilePointer += BytesToRead;
|
Ext2FileInfo->FilePointer += BytesToRead;
|
||||||
BytesToRead -= BytesToRead;
|
|
||||||
Buffer = (PVOID)((ULONG_PTR)Buffer + (ULONG_PTR)BytesToRead);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -1341,7 +1341,7 @@ BOOLEAN FatReadFile(PFAT_FILE_INFO FatFileInfo, ULONG BytesToRead, ULONG* BytesR
|
||||||
ASSERT(!FAT_IS_END_CLUSTER(FatFileInfo->CurrentCluster));
|
ASSERT(!FAT_IS_END_CLUSTER(FatFileInfo->CurrentCluster));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Now do the read and update BytesRead, BytesToRead, FilePointer, & Buffer
|
// Now do the read and update BytesRead & FilePointer
|
||||||
//
|
//
|
||||||
if (!FatReadPartialCluster(Volume, FatFileInfo->CurrentCluster, 0, BytesToRead, Buffer))
|
if (!FatReadPartialCluster(Volume, FatFileInfo->CurrentCluster, 0, BytesToRead, Buffer))
|
||||||
{
|
{
|
||||||
|
@ -1352,8 +1352,6 @@ BOOLEAN FatReadFile(PFAT_FILE_INFO FatFileInfo, ULONG BytesToRead, ULONG* BytesR
|
||||||
*BytesRead += BytesToRead;
|
*BytesRead += BytesToRead;
|
||||||
}
|
}
|
||||||
FatFileInfo->FilePointer += BytesToRead;
|
FatFileInfo->FilePointer += BytesToRead;
|
||||||
BytesToRead -= BytesToRead;
|
|
||||||
Buffer = (PVOID)((ULONG_PTR)Buffer + BytesToRead);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -1505,17 +1505,7 @@ InfGetData (
|
||||||
if (Key != NULL)
|
if (Key != NULL)
|
||||||
*Key = CacheKey->Key;
|
*Key = CacheKey->Key;
|
||||||
|
|
||||||
if (Data != NULL)
|
*Data = (CacheKey->FirstField == NULL) ? NULL : CacheKey->FirstField->Data;
|
||||||
{
|
|
||||||
if (CacheKey->FirstField == NULL)
|
|
||||||
{
|
|
||||||
*Data = NULL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
*Data = CacheKey->FirstField->Data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue