diff options
author | tschmelcher@google.com <tschmelcher@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 23:17:43 +0000 |
---|---|---|
committer | tschmelcher@google.com <tschmelcher@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 23:17:43 +0000 |
commit | 068dc16f8096093ed46756ca4448e6df7170c896 (patch) | |
tree | b0a274fe01245d76c9fe6589d6a00f56423c9293 /o3d | |
parent | e5642991cb7d0c2efde4c9d6569b723f7fdc8837 (diff) | |
download | chromium_src-068dc16f8096093ed46756ca4448e6df7170c896.zip chromium_src-068dc16f8096093ed46756ca4448e6df7170c896.tar.gz chromium_src-068dc16f8096093ed46756ca4448e6df7170c896.tar.bz2 |
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
Diffstat (limited to 'o3d')
-rw-r--r-- | o3d/plugin/cross/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |