Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2312)

Unified Diff: courgette/win32_x86_generator.h

Issue 6677141: Switch out use of std::string and std::vector for large allocations for a buffer class that doesn... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix linux build error. remove unnecessary call Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/streams.cc ('k') | courgette/win32_x86_patcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/win32_x86_generator.h
===================================================================
--- courgette/win32_x86_generator.h (revision 80344)
+++ courgette/win32_x86_generator.h (working copy)
@@ -27,8 +27,11 @@
}
Status WriteInitialParameters(SinkStream* parameter_stream) {
- parameter_stream->WriteSizeVarint32(old_element_->offset_in_ensemble());
- parameter_stream->WriteSizeVarint32(old_element_->region().length());
+ if (!parameter_stream->WriteSizeVarint32(
+ old_element_->offset_in_ensemble()) ||
+ !parameter_stream->WriteSizeVarint32(old_element_->region().length())) {
+ return C_STREAM_ERROR;
+ }
return C_OK;
// TODO(sra): Initialize |patcher_| with these parameters.
}
« no previous file with comments | « courgette/streams.cc ('k') | courgette/win32_x86_patcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698