diff --git a/Source/Platform.h b/Source/Platform.h index 98ef2cfc..ed063af5 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -521,6 +521,7 @@ typedef DWORDLONG ULONGLONG,*PULONGLONG; # define WS_EX_RIGHTSCROLLBAR 0 # define WS_EX_RTLREADING 0x2000 # define WS_EX_LEFTSCROLLBAR 0x4000 +# define WS_EX_LAYOUTRTL 0x00400000 # define TVS_RTLREADING 64 diff --git a/Source/icon.cpp b/Source/icon.cpp index e169fcdf..ff318305 100644 --- a/Source/icon.cpp +++ b/Source/icon.cpp @@ -115,6 +115,8 @@ IconGroup load_icon_file(const char* filename) throw runtime_error("unable to read offset from file"); } + FIX_ENDIAN_INT32_INPLACE(iconOffset); + fpos_t pos; fgetpos(file, &pos);