xbmc/xbmc — pull request #1214 by jabbera (2012-07-25 01:08:56+00:00)
Title: forceClose enableSound bit-wise probably wrong.

(forceClose ? 0x01 : 0 | enableSound ? 0x02 : 0);
is actually (forceClose ? 0x01 : (0 | enableSound) ? 0x02 : 0); based on operator precedence or bit-wise or.

I'm pretty sure based on usage at: https://github.com/xbmc/xbmc/blob/master/xbmc/ApplicationMessenger.cpp#L676

that it should be:
((forceClose ? 0x01 : 0) | (enableSound ? 0x02 : 0));

I'm going to admit I haven't tested this.