From d79ad6d2c89cadb83eeb14321c862e4b4691fb97 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 23 Aug 2023 12:07:54 -0600 Subject: [PATCH] Change GUINT_FROM_LE to GUINT16_FROM_LE Signed-off-by: Jerry James --- libmsi/string.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libmsi/string.c b/libmsi/string.c index 988d6eb..0b20c0b 100644 --- a/libmsi/string.c +++ b/libmsi/string.c @@ -495,14 +495,14 @@ string_table *msi_load_string_table( GsfInfile *stg, unsigned *bytes_per_strref if( r != LIBMSI_RESULT_SUCCESS) goto end; - if ( (poolsize > 4) && (GUINT_FROM_LE(pool[1]) & 0x8000) ) + if ( (poolsize > 4) && (GUINT16_FROM_LE(pool[1]) & 0x8000) ) *bytes_per_strref = LONG_STR_BYTES; else *bytes_per_strref = sizeof(uint16_t); count = poolsize/4; if( poolsize > 4 ) - codepage = GUINT_FROM_LE(pool[0]) | ( (GUINT_FROM_LE(pool[1]) & ~0x8000) << 16 ); + codepage = GUINT16_FROM_LE(pool[0]) | ( (GUINT16_FROM_LE(pool[1]) & ~0x8000) << 16 ); else codepage = CP_ACP; @@ -516,10 +516,10 @@ string_table *msi_load_string_table( GsfInfile *stg, unsigned *bytes_per_strref while ( i