From 068dc16f8096093ed46756ca4448e6df7170c896 Mon Sep 17 00:00:00 2001 From: "tschmelcher@google.com" Date: Fri, 26 Jun 2009 23:17:43 +0000 Subject: nspluginwrapper compat fixes, part 1: Set the correct size in NP_GetEntryPoints. The old code was assigning the size of the _pointer_ (i.e., 4). Apparently most browsers ignore this or else O3D wouldn't have worked anywhere, but nspluginwrapper started to care about this very much somewhere between 1.2.2 and 1.3.1-Pre (20090625). With the old code it stops before even calling our NPP_New because it thinks we don't have one. Review URL: http://codereview.chromium.org/149113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19440 0039d316-1c4b-4281-b951-d872f2087c98 --- o3d/plugin/cross/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'o3d') diff --git a/o3d/plugin/cross/main.cc b/o3d/plugin/cross/main.cc index 6bf5aab..0f8ab78 100644 --- a/o3d/plugin/cross/main.cc +++ b/o3d/plugin/cross/main.cc @@ -63,7 +63,7 @@ extern "C" { NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs) { HANDLE_CRASHES; pluginFuncs->version = 11; - pluginFuncs->size = sizeof(pluginFuncs); + pluginFuncs->size = sizeof(*pluginFuncs); pluginFuncs->newp = NPP_New; pluginFuncs->destroy = NPP_Destroy; pluginFuncs->setwindow = NPP_SetWindow; -- cgit v1.1