Permalink
Browse files

Merge pull request #1215 from jabbera/ApplicationMessagerCloseBug

forceClose enableSound bit-wise probably wrong.
  • Loading branch information...
2 parents 7e22aff + b2abab5 commit 068cd7916881623d7aacc6ab85a70a56454fcdbf @jmarshallnz jmarshallnz committed Aug 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/ApplicationMessenger.cpp
@@ -1141,7 +1141,7 @@ void CApplicationMessenger::Show(CGUIDialog *pDialog)
void CApplicationMessenger::Close(CGUIWindow *window, bool forceClose, bool waitResult /*= true*/, int nextWindowID /*= 0*/, bool enableSound /*= true*/)
{
ThreadMessage tMsg = {TMSG_GUI_WINDOW_CLOSE, nextWindowID};
- tMsg.dwParam2 = (DWORD)(forceClose ? 0x01 : 0 | enableSound ? 0x02 : 0);
+ tMsg.dwParam2 = (DWORD)((forceClose ? 0x01 : 0) | (enableSound ? 0x02 : 0));
tMsg.lpVoid = window;
SendMessage(tMsg, waitResult);
}

0 comments on commit 068cd79

Please sign in to comment.