diff options
Diffstat (limited to 'o3d/plugin/cross/main.cc')
-rw-r--r-- | o3d/plugin/cross/main.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/o3d/plugin/cross/main.cc b/o3d/plugin/cross/main.cc index 0f8ab78..5f08407 100644 --- a/o3d/plugin/cross/main.cc +++ b/o3d/plugin/cross/main.cc @@ -146,9 +146,12 @@ extern "C" { *v = obj; break; } - default: - return NP_GetValue(instance, variable, value); - break; + default: { + NPError ret = PlatformNPPGetValue(instance, variable, value); + if (ret == NPERR_INVALID_PARAM) + ret = NP_GetValue(instance, variable, value); + return ret; + } } return NPERR_NO_ERROR; } |