mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
Fix for Bugzilla Entry 330: Correctly handle WM_COMMAND messages in web windows without web control
svn path=/trunk/; revision=18379
This commit is contained in:
parent
3edf5a41cc
commit
f8879f3de8
1 changed files with 30 additions and 29 deletions
|
@ -247,7 +247,9 @@ LRESULT WebChildWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
case PM_DISPATCH_COMMAND: {
|
case PM_DISPATCH_COMMAND: {
|
||||||
if (_control) {
|
if (!_control)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
HRESULT hr = E_FAIL;
|
HRESULT hr = E_FAIL;
|
||||||
|
|
||||||
switch(LOWORD(wparam)) {
|
switch(LOWORD(wparam)) {
|
||||||
|
@ -285,7 +287,6 @@ LRESULT WebChildWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
|
|
||||||
if (FAILED(hr) && hr!=E_FAIL)
|
if (FAILED(hr) && hr!=E_FAIL)
|
||||||
THROW_EXCEPTION(hr);
|
THROW_EXCEPTION(hr);
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;}
|
return TRUE;}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue