Skip to content

Explicitly mark little-endian data

Stephen Kitt requested to merge skitt/msitools:big-endian into master

The values in the string table are stored in little-endian order; explicitly convert from little-endian to host order so that the function will work on big-endian platforms too.

This was broken by 31bd06e1, which effectively reverted c401fd3d; instead of reverting to that, this patch keeps the Wine-style code, but "decorates" the problematic reads.

Fixes: #10 (closed) Signed-off-by: Stephen Kitt steve@sk2.org

Merge request reports