diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 19:01:58 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 19:01:58 +0000 |
commit | d3dd779e08301bdc77348724c0038727be975ae6 (patch) | |
tree | 4dd6c58eb8aeffc6638fae541d1a577a9ef16224 /ppapi | |
parent | 02ab09c3c2b55a3c1f2905f52c47ba422e0f53e9 (diff) | |
download | chromium_src-d3dd779e08301bdc77348724c0038727be975ae6.zip chromium_src-d3dd779e08301bdc77348724c0038727be975ae6.tar.gz chromium_src-d3dd779e08301bdc77348724c0038727be975ae6.tar.bz2 |
Properly initialize the next callback ID to 1.
This is necessary because 0 is reserved as an error value. This causes the
first file ref call used from the proxy to fail.
BUG=89961
Review URL: http://codereview.chromium.org/8659017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/proxy/ppb_file_ref_proxy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/proxy/ppb_file_ref_proxy.cc b/ppapi/proxy/ppb_file_ref_proxy.cc index 55ef63b..6ea98c7 100644 --- a/ppapi/proxy/ppb_file_ref_proxy.cc +++ b/ppapi/proxy/ppb_file_ref_proxy.cc @@ -73,7 +73,7 @@ class FileRef : public FileRefImpl { FileRef::FileRef(const PPB_FileRef_CreateInfo& info) : FileRefImpl(FileRefImpl::InitAsProxy(), info), - next_callback_id_(0) { + next_callback_id_(1) { } FileRef::~FileRef() { |