mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31:57 +00:00
correctly read console_mask
This commit is contained in:
parent
9704f9621c
commit
4d5dc66d99
@ -37,7 +37,7 @@ int emile_second_set_output(int fd, unsigned int enable_mask,
|
||||
if (!EMILE_COMPAT(EMILE_03_SIGNATURE, read_long(&header.signature)))
|
||||
return EEMILE_INVALID_SECOND;
|
||||
|
||||
mask = read_long(header.console_mask);
|
||||
mask = read_long(&header.console_mask);
|
||||
mask |= enable_mask;
|
||||
mask &= ~disable_mask;
|
||||
write_long(&header.console_mask, mask);
|
||||
|
Loading…
Reference in New Issue
Block a user