summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authormseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-25 21:04:57 +0000
committermseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-25 21:04:57 +0000
commit302492be5971df01cddcca27ad892adc7ca8792f (patch)
treecfe30b5f0f950240402078f39c5976a22ffc25be /ppapi
parentb787d6b2f124f3240db3a389a82f9a18258e512a (diff)
downloadchromium_src-302492be5971df01cddcca27ad892adc7ca8792f.zip
chromium_src-302492be5971df01cddcca27ad892adc7ca8792f.tar.gz
chromium_src-302492be5971df01cddcca27ad892adc7ca8792f.tar.bz2
PNaCl: Fix IRT wrapper to return proper error value
-1 is not a valid error return value for the IRT query function, which is supposed to return 0 if an interface is not found. This is just a nit, because this error is not likely to occur in practice, but the presence of "return -1" might lead people to think this is a valid error value for this interface. BUG=none TEST=none Review URL: https://codereview.chromium.org/20438002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c b/ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c
index bace426..76bc4d5 100644
--- a/ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c
+++ b/ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c
@@ -90,7 +90,7 @@ size_t __pnacl_irt_interface_wrapper(const char *interface_ident,
&real_irt_ppapi_hook,
sizeof real_irt_ppapi_hook) !=
sizeof real_irt_ppapi_hook) {
- return -1;
+ return 0;
}
/*
* Copy the portion of the ppapihook interface that is not wrapped.