mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
Dmitry Gorbachev
- Fix warnings in host tools. See issue #3539 for more details. svn path=/trunk/; revision=34734
This commit is contained in:
parent
5032762531
commit
face282d9f
|
@ -1694,8 +1694,7 @@ ULONG CCabinet::WriteFileToScratchStorage(PCFFILE_NODE FileNode)
|
|||
return CAB_STATUS_INVALID_CAB;
|
||||
}
|
||||
|
||||
*(unsigned char**)&CurrentIBuffer += BytesRead;
|
||||
|
||||
CurrentIBuffer = (unsigned char*)CurrentIBuffer + BytesRead;
|
||||
CurrentIBufferSize += (USHORT)BytesRead;
|
||||
|
||||
if (CurrentIBufferSize == CAB_BLOCKSIZE)
|
||||
|
@ -3573,8 +3572,8 @@ ULONG CCabinet::WriteDataBlock()
|
|||
CurrentFolderNode->TotalFolderSize += (BytesWritten + sizeof(CFDATA));
|
||||
CurrentFolderNode->Folder.DataBlockCount++;
|
||||
|
||||
*(unsigned char**)&CurrentOBuffer += DataNode->Data.CompSize;
|
||||
CurrentOBufferSize -= DataNode->Data.CompSize;
|
||||
CurrentOBuffer = (unsigned char*)CurrentOBuffer + DataNode->Data.CompSize;
|
||||
CurrentOBufferSize -= DataNode->Data.CompSize;
|
||||
|
||||
LastBlockStart += DataNode->Data.UncompSize;
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ namespace System_
|
|||
size_t i;
|
||||
#if 0
|
||||
// gettimeofday(&tm, 0);
|
||||
#else
|
||||
memset(&tm, 0, sizeof(tm));
|
||||
#endif
|
||||
for (i = 0; i < s_Entries.size(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue