Preliminary support for MSYS/MinGW builds. Doesn't yet build

CSynergyHook as a DLL and does not compile or link in the
resources for the binaries.
This commit is contained in:
crs
2004-04-11 19:15:09 +00:00
parent 530be3ff9d
commit bf2879724f
20 changed files with 386 additions and 373 deletions

View File

@@ -209,11 +209,8 @@ CProtocolUtil::vreadf(IStream* stream, const char* fmt, va_list args)
const bool useFixed = (len <= sizeof(buffer));
// allocate a buffer to read the data
UInt8* sBuffer;
if (useFixed) {
sBuffer = buffer;
}
else {
UInt8* sBuffer = buffer;
if (!useFixed) {
sBuffer = new UInt8[len];
}