diff options
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r-- | binutils/resrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c index fca874a..a29a664 100644 --- a/binutils/resrc.c +++ b/binutils/resrc.c @@ -1889,8 +1889,8 @@ write_rc_resource (e, type, name, res, language) if (res->res_info.language != 0 && res->res_info.language != *language) fprintf (e, "%sLANGUAGE %d, %d\n", modifiers ? "// " : "", - res->res_info.language & 0xff, - (res->res_info.language >> 8) & 0xff); + res->res_info.language & ((1<<SUBLANG_SHIFT)-1), + (res->res_info.language >> SUBLANG_SHIFT) & 0xff); if (res->res_info.characteristics != 0) fprintf (e, "%sCHARACTERISTICS %lu\n", modifiers ? "// " : "", |