diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 04:26:29 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 04:26:29 +0000 |
commit | b285a98a45c5ddd4ad9080a06d5a7d4943ac19d9 (patch) | |
tree | af4db21e058435015f70227b4cf642d13a1045ce /webkit | |
parent | 1b37b0ab63451279102485fe0663e72059fc3f96 (diff) | |
download | chromium_src-b285a98a45c5ddd4ad9080a06d5a7d4943ac19d9.zip chromium_src-b285a98a45c5ddd4ad9080a06d5a7d4943ac19d9.tar.gz chromium_src-b285a98a45c5ddd4ad9080a06d5a7d4943ac19d9.tar.bz2 |
Try to fix the tree.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/npapi_layout_test_plugin/PluginObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp b/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp index fee079e..2afda67 100644 --- a/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp +++ b/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp @@ -557,9 +557,10 @@ static bool testPostURLFile(PluginObject* obj, const NPVariant* args, uint32_t a if (!tempFile) return false; - ssize_t written = fwrite(contentsString.UTF8Characters, contentsString.UTF8Length, 1, tempFile); - DCHECK_EQ(written, 1); + int written = fwrite(contentsString.UTF8Characters, contentsString.UTF8Length, 1, tempFile); fclose(tempFile); + if (written != 1) + return false; NPError error = browser->posturl(obj->npp, url, target, pathString.UTF8Length, path, TRUE); |