Finally fix all cabman warnings and the 64-bit build
authorColin Finck <colin@reactos.org>
Sun, 3 Feb 2008 11:52:42 +0000 (11:52 +0000)
committerColin Finck <colin@reactos.org>
Sun, 3 Feb 2008 11:52:42 +0000 (11:52 +0000)
svn path=/trunk/; revision=32103

reactos/tools/cabman/cabinet.cxx

index 07c0f3a..b76dd0a 100755 (executable)
@@ -1105,8 +1105,8 @@ ULONG CCabinet::ExtractFile(char* FileName)
 
                     BytesToRead = CFData.CompSize;
 
-                    DPRINT(MAX_TRACE, ("Read: (0x%X,0x%X).\n",
-                        (UINT_PTR)CurrentBuffer, (UINT_PTR)Buffer));
+                    DPRINT(MAX_TRACE, ("Read: (0x%lX,0x%lX).\n",
+                        (_W64 unsigned long)CurrentBuffer, (_W64 unsigned long)Buffer));
 
                     if (((Status = ReadBlock(CurrentBuffer, BytesToRead, &BytesRead)) !=
                         CAB_STATUS_SUCCESS) || (BytesToRead != BytesRead))
@@ -1228,7 +1228,7 @@ ULONG CCabinet::ExtractFile(char* FileName)
                 BytesToWrite = BytesLeftInBlock;
 
                 DPRINT(MAX_TRACE, ("Seeking to absolute offset 0x%X.\n",
-                    (UINT)CurrentDataNode->AbsoluteOffset + sizeof(CFDATA) + CurrentDataNode->Data.CompSize));
+                    (UINT)(CurrentDataNode->AbsoluteOffset + sizeof(CFDATA) + CurrentDataNode->Data.CompSize)));
 
                 if (((Status = ReadBlock(&CFData, sizeof(CFDATA), &BytesRead)) !=
                     CAB_STATUS_SUCCESS) || (BytesRead != sizeof(CFDATA)))