Remove the /Wp64 switch from the cabman project file (no idea why it was enabled anyway ;-) and the _W64 macros from the code.
svn path=/trunk/; revision=32395
BytesToRead = CFData.CompSize;
- DPRINT(MAX_TRACE, ("Read: (0x%lX,0x%lX).\n",
- (_W64 unsigned long)CurrentBuffer, (_W64 unsigned long)Buffer));
+ DPRINT(MAX_TRACE, ("Read: (0x%X,0x%X).\n",
+ (UINT)CurrentBuffer, (UINT)Buffer));
if (((Status = ReadBlock(CurrentBuffer, BytesToRead, &BytesRead)) !=
CAB_STATUS_SUCCESS) || (BytesToRead != BytesRead))
#endif
#endif
-#ifndef _W64
-#define _W64
-#endif
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
RuntimeLibrary="3"\r
UsePrecompiledHeader="0"\r
WarningLevel="3"\r
- Detect64BitPortabilityProblems="true"\r
+ Detect64BitPortabilityProblems="false"\r
DebugInformationFormat="4"\r
/>\r
<Tool\r
ZStream.next_in = (unsigned char*)InputBuffer;
ZStream.avail_in = InputLength;
- ZStream.next_out = (unsigned char*)((_W64 unsigned long)OutputBuffer + 2);
+ ZStream.next_out = (unsigned char*)((unsigned long)OutputBuffer + 2);
ZStream.avail_out = CAB_BLOCKSIZE + 12;
/* WindowBits is passed < 0 to tell that there is no zlib header */
return CS_BADSTREAM;
}
- ZStream.next_in = (unsigned char*)((_W64 unsigned long)InputBuffer + 2);
+ ZStream.next_in = (unsigned char*)((unsigned long)InputBuffer + 2);
ZStream.avail_in = InputLength - 2;
ZStream.next_out = (unsigned char*)OutputBuffer;
ZStream.avail_out = CAB_BLOCKSIZE + 12;