[Coverity] Fix possible leak.

If the first open returns a file handle of 0, it could be leaked (if PLATFORM_FILE_OPEN_ALWAYS is set too)

In general, fixed so that file handle of 0 is treated as a file handle, not as error code.

CID=101981

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9873005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129659 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 4a3b533fd6992cfef6520abc714a6ac6c3461910
1 file changed
tree: d3f1a0d47ae9d542e2f86e6d3db78bf832fb4cdc
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/