Author: fireball Date: Thu Jul 24 06:05:22 2008 New Revision: 34734
URL: http://svn.reactos.org/svn/reactos?rev=34734&view=rev Log: Dmitry Gorbachev - Fix warnings in host tools. See issue #3539 for more details.
Modified: trunk/reactos/tools/cabman/cabinet.cxx trunk/reactos/tools/sysreg/os_support.cpp
Modified: trunk/reactos/tools/cabman/cabinet.cxx URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cabman/cabinet.cxx?re... ============================================================================== --- trunk/reactos/tools/cabman/cabinet.cxx [iso-8859-1] (original) +++ trunk/reactos/tools/cabman/cabinet.cxx [iso-8859-1] Thu Jul 24 06:05:22 2008 @@ -1694,8 +1694,7 @@ 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 @@ 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;
Modified: trunk/reactos/tools/sysreg/os_support.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/os_support.cpp... ============================================================================== --- trunk/reactos/tools/sysreg/os_support.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/os_support.cpp [iso-8859-1] Thu Jul 24 06:05:22 2008 @@ -22,6 +22,8 @@ size_t i; #if 0 // gettimeofday(&tm, 0); +#else + memset(&tm, 0, sizeof(tm)); #endif for (i = 0; i < s_Entries.size(); i++) {