From a38e1f37ebc2b2354d98172b406fc9f4aa28c840 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Jun 2014 00:05:21 -0700 Subject: [PATCH] Fix loss of data in GetLong/PutLong --- limelight-common/ByteBuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/limelight-common/ByteBuffer.c b/limelight-common/ByteBuffer.c index edaf325..27e21db 100644 --- a/limelight-common/ByteBuffer.c +++ b/limelight-common/ByteBuffer.c @@ -80,7 +80,7 @@ int BbGetLong(PBYTE_BUFFER buff, long long *l) { memcpy(l, &buff->buffer[buff->position], sizeof(*l)); buff->position += sizeof(*l); - *l = byteSwapInt(buff, *l); + *l = byteSwapLongLong(buff, *l); return 1; } @@ -103,7 +103,7 @@ int BbPutLong(PBYTE_BUFFER buff, long long l) { return 0; } - l = byteSwapInt(buff, l); + l = byteSwapLongLong(buff, l); memcpy(&buff->buffer[buff->position], &l, sizeof(l)); buff->position += sizeof(l);