diff options
author | John Rennie <john.rennie@ratsauce.co.uk> | 2011-05-25 10:23:17 +0100 |
---|---|---|
committer | John Rennie <john.rennie@ratsauce.co.uk> | 2011-05-25 10:23:17 +0100 |
commit | d4f1be9c52c595b1a50f1a7d84a60bbb017f863b (patch) | |
tree | 6c0701a949822ac79e5664709258dc50d3f91764 | |
parent | 263353bd793b81105c865940244337565e6f04fa (diff) |
The WM_APPCOMMAND case in WinEventsWin32.cpp needs to call DefWindowProc if it has not processed the appcommand
-rw-r--r-- | xbmc/windowing/windows/WinEventsWin32.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/windowing/windows/WinEventsWin32.cpp b/xbmc/windowing/windows/WinEventsWin32.cpp index 09bf5810c5..71595dfc41 100644 --- a/xbmc/windowing/windows/WinEventsWin32.cpp +++ b/xbmc/windowing/windows/WinEventsWin32.cpp @@ -501,7 +501,10 @@ LRESULT CALLBACK CWinEventsWin32::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, L CLog::Log(LOGDEBUG, "WinEventsWin32.cpp: APPCOMMAND %d", GET_APPCOMMAND_LPARAM(lParam)); newEvent.appcommand.type = XBMC_APPCOMMAND; newEvent.appcommand.action = GET_APPCOMMAND_LPARAM(lParam); - return m_pEventFunc(newEvent) ? 1 : 0; + if (m_pEventFunc(newEvent)) + return TRUE; + else + return DefWindowProc(hWnd, uMsg, wParam, lParam); } case WM_GESTURENOTIFY: { |