Index: webkit/glue/plugins/test/plugin_window_size_test.cc |
=================================================================== |
--- webkit/glue/plugins/test/plugin_window_size_test.cc (revision 42644) |
+++ webkit/glue/plugins/test/plugin_window_size_test.cc (working copy) |
@@ -13,6 +13,9 @@ |
} |
NPError PluginWindowSizeTest::SetWindow(NPWindow* pNPWindow) { |
+ if (pNPWindow->window == NULL) |
+ return NPERR_NO_ERROR; |
+ |
HWND window = reinterpret_cast<HWND>(pNPWindow->window); |
if (!pNPWindow || !::IsWindow(window)) { |
SetError("Invalid arguments passed in"); |