зеркало из https://github.com/mozilla/pjs.git
Bug 691801 - Fix for nsPluginNativeWindowWin.cpp: 'return' : truncation from 'nsresult' to 'bool'. r=josh
This commit is contained in:
Родитель
baab85a64c
Коммит
9f0daf7f7f
|
@ -178,14 +178,14 @@ static UINT sLastMsg = 0;
|
||||||
static bool ProcessFlashMessageDelayed(nsPluginNativeWindowWin * aWin, nsNPAPIPluginInstance * aInst,
|
static bool ProcessFlashMessageDelayed(nsPluginNativeWindowWin * aWin, nsNPAPIPluginInstance * aInst,
|
||||||
HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
NS_ENSURE_TRUE(aWin, NS_ERROR_NULL_POINTER);
|
NS_ENSURE_TRUE(aWin, false);
|
||||||
NS_ENSURE_TRUE(aInst, NS_ERROR_NULL_POINTER);
|
NS_ENSURE_TRUE(aInst, false);
|
||||||
|
|
||||||
if (msg == sWM_FLASHBOUNCEMSG) {
|
if (msg == sWM_FLASHBOUNCEMSG) {
|
||||||
// See PluginWindowEvent::Run() below.
|
// See PluginWindowEvent::Run() below.
|
||||||
NS_ASSERTION((sWM_FLASHBOUNCEMSG != 0), "RegisterWindowMessage failed in flash plugin WM_USER message handling!");
|
NS_ASSERTION((sWM_FLASHBOUNCEMSG != 0), "RegisterWindowMessage failed in flash plugin WM_USER message handling!");
|
||||||
::CallWindowProc((WNDPROC)aWin->GetWindowProc(), hWnd, WM_USER_FLASH, wParam, lParam);
|
::CallWindowProc((WNDPROC)aWin->GetWindowProc(), hWnd, WM_USER_FLASH, wParam, lParam);
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg != WM_USER_FLASH)
|
if (msg != WM_USER_FLASH)
|
||||||
|
@ -348,10 +348,8 @@ static LRESULT CALLBACK PluginWndProcInternal(HWND hWnd, UINT msg, WPARAM wParam
|
||||||
|
|
||||||
sInMessageDispatch = true;
|
sInMessageDispatch = true;
|
||||||
|
|
||||||
LRESULT res = TRUE;
|
LRESULT res = CallWindowProc((WNDPROC)win->GetWindowProc(),
|
||||||
NS_TRY_SAFE_CALL_RETURN(res,
|
hWnd, msg, wParam, lParam);
|
||||||
::CallWindowProc((WNDPROC)win->GetWindowProc(), hWnd, msg, wParam, lParam),
|
|
||||||
inst);
|
|
||||||
|
|
||||||
sInMessageDispatch = false;
|
sInMessageDispatch = false;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче