mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-25 21:33:20 +08:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user