summaryrefslogtreecommitdiffstats
path: root/courgette/ensemble_apply.cc
diff options
context:
space:
mode:
Diffstat (limited to 'courgette/ensemble_apply.cc')
-rw-r--r--courgette/ensemble_apply.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/courgette/ensemble_apply.cc b/courgette/ensemble_apply.cc
index 9621f30..6efbc40 100644
--- a/courgette/ensemble_apply.cc
+++ b/courgette/ensemble_apply.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -396,6 +396,8 @@ Status ApplyEnsemblePatch(const FilePath::CharType* old_file_name,
SinkStream new_sink_stream;
status = ApplyEnsemblePatch(&old_source_stream, &patch_source_stream,
&new_sink_stream);
+ if (status != C_OK)
+ return status;
// Write the patched data to |new_file_name|.
FilePath new_file_path(new_file_name);