Fixed printing of hex-suffix for `0` values
@@ -134,6 +134,11 @@ ZyanStatus ZydisStringAppendHexU32(ZydisString* string, ZyanU32 value, ZyanU8 pa
ZYAN_MEMSET(buffer, '0', n);
string->length += n;
+ if (suffix)
+ {
+ ZYAN_CHECK(ZydisStringAppend(string, suffix));
+ }
+
return ZYAN_STATUS_SUCCESS;
}
@@ -244,6 +249,11 @@ ZyanStatus ZydisStringAppendHexU64(ZydisString* string, ZyanU64 value, ZyanU8 pa
ZYAN_MEMSET(buffer, '0', n);
string->length += n;
+ if (suffix)
+ {
+ ZYAN_CHECK(ZydisStringAppend(string, suffix));
+ }
+
return ZYAN_STATUS_SUCCESS;
}
