Backport fcf25136d8
This commit is contained in:
@@ -31,10 +31,7 @@ void FlipByteOrder(uint8 *src, uint32 count)
|
|||||||
uint8 *start = src;
|
uint8 *start = src;
|
||||||
uint8 *end = src + count - 1;
|
uint8 *end = src + count - 1;
|
||||||
|
|
||||||
if ((count & 1) || !count)
|
while(start < end)
|
||||||
return; /* This shouldn't happen. */
|
|
||||||
|
|
||||||
while (count--)
|
|
||||||
{
|
{
|
||||||
uint8 tmp;
|
uint8 tmp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user