Index: ui/gfx/win/window_impl.cc |
=================================================================== |
--- ui/gfx/win/window_impl.cc (revision 245814) |
+++ ui/gfx/win/window_impl.cc (working copy) |
@@ -226,14 +226,10 @@ |
LRESULT WindowImpl::OnWndProc(UINT message, WPARAM w_param, LPARAM l_param) { |
LRESULT result = 0; |
- HWND hwnd = hwnd_; |
- if (message == WM_NCDESTROY) |
- hwnd_ = NULL; |
- |
// Handle the message if it's in our message map; otherwise, let the system |
// handle it. |
- if (!ProcessWindowMessage(hwnd, message, w_param, l_param, result)) |
- result = DefWindowProc(hwnd, message, w_param, l_param); |
+ if (!ProcessWindowMessage(hwnd_, message, w_param, l_param, result)) |
+ result = DefWindowProc(hwnd_, message, w_param, l_param); |
return result; |
} |