git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f9ee11
)
xml_windows.c: use correct integer type (no change in behavior)
author
Eric Biggers
<ebiggers3@gmail.com>
Sun, 17 Apr 2016 14:44:58 +0000
(09:44 -0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Sun, 17 Apr 2016 15:16:41 +0000
(10:16 -0500)
src/xml_windows.c
patch
|
blob
|
history
diff --git
a/src/xml_windows.c
b/src/xml_windows.c
index 455a0deee4d2d70450fcfbc5806b2b4b62ff2267..a88c56485e050163411d29c0698979541a17fcf5 100644
(file)
--- a/
src/xml_windows.c
+++ b/
src/xml_windows.c
@@
-405,7
+405,7
@@
set_info_from_kernel32(struct windows_info_ctx *ctx,
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));