Commit 1c6088fa authored by Andrea Zoli's avatar Andrea Zoli
Browse files

Invert bigendian flag on ByteStream swapWord().

parent 8efb94d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -494,6 +494,8 @@ ByteStreamPtr PacketLib::ByteStream::getUnpaddedCopy(dword chunkSize, dword padS
}

void PacketLib::ByteStream::swapWord() {
	bigendian = !bigendian;

	dword dim =  byteInTheStream;
	for(dword i = 0; i< dim; i+=2)
	{