]> wimlib.net Git - wimlib/commitdiff
xml_windows.c: use correct integer type (no change in behavior)
authorEric Biggers <ebiggers3@gmail.com>
Sun, 17 Apr 2016 14:44:58 +0000 (09:44 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 17 Apr 2016 15:16:41 +0000 (10:16 -0500)
src/xml_windows.c

index 455a0deee4d2d70450fcfbc5806b2b4b62ff2267..a88c56485e050163411d29c0698979541a17fcf5 100644 (file)
@@ -405,7 +405,7 @@ set_info_from_kernel32(struct windows_info_ctx *ctx,
                goto invalid;
 
        pe_hdr = (u8 *)contents + e_lfanew;
                goto invalid;
 
        pe_hdr = (u8 *)contents + e_lfanew;
-       if (*(u32 *)pe_hdr != cpu_to_le32(0x00004550))  /* "PE\0\0"  */
+       if (*(le32 *)pe_hdr != cpu_to_le32(0x00004550)) /* "PE\0\0"  */
                goto invalid;
 
        pe_arch = le16_to_cpu(*(le16 *)(pe_hdr + 4));
                goto invalid;
 
        pe_arch = le16_to_cpu(*(le16 *)(pe_hdr + 4));