diff --git a/phlib/basesup.c b/phlib/basesup.c index 5838be367..470d56d8a 100644 --- a/phlib/basesup.c +++ b/phlib/basesup.c @@ -572,7 +572,7 @@ SIZE_T PhCountStringZ( if ((ULONG_PTR)p & 0xe) { - ULONG unalignedCount = (ULONG)((ULONG_PTR)p & 0xe) / 2; + ULONG unalignedCount = (0x10 - (ULONG)((ULONG_PTR)p & 0xe)) / 2; do {