From 9aa4ffcfadd62ba471d479899ba07f7a27491d5b Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Sun, 25 Jun 2006 07:34:52 +0000 Subject: [PATCH] Bug 336968 Function: _getvalue does not dereference "result" after assigning to *result r=jst sr=jst git-svn-id: svn://10.0.0.236/trunk@200826 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/ns4xPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/modules/plugin/base/src/ns4xPlugin.cpp b/mozilla/modules/plugin/base/src/ns4xPlugin.cpp index ee698da91fc..56a8828eba7 100644 --- a/mozilla/modules/plugin/base/src/ns4xPlugin.cpp +++ b/mozilla/modules/plugin/base/src/ns4xPlugin.cpp @@ -1928,7 +1928,7 @@ _getvalue(NPP npp, NPNVariable variable, void *result) *((NPNToolkitType*)result) = NPNVGtk2; #endif - if (*result) + if (*(NPNToolkitType*)result) return NPERR_NO_ERROR; return NPERR_GENERIC_ERROR;