vcpkg/ports/distorm/fix-arm-builds.patch
chausner 5bb0c7fc45
[distorm] Update to 3.5.2b (#20488)
* Update distorm to 3.5.2b

* Update CI baseline

* Fix compilation

* Update git-tree hash

* Fix ARM builds

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-10-06 12:28:24 -07:00

13 lines
309 B
Diff

--- a/src/textdefs.c
+++ b/src/textdefs.c
@@ -42,7 +42,8 @@
s->length = len * 2;
s->p[len * 2] = 0;
do {
- RSHORT(&s->p[i]) = RSHORT(&TextBTable[(*buf) * 2]);
+ s->p[i] = TextBTable[(*buf) * 2];
+ s->p[i + 1] = TextBTable[(*buf) * 2 + 1];
buf++;
i += 2;
} while (i < len * 2);