summaryrefslogtreecommitdiffstats
path: root/courgette
diff options
context:
space:
mode:
authorhalyavin <halyavin@chromium.org>2015-03-20 14:06:55 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-20 21:07:31 +0000
commita9eae08445c9dd7cca02bc14b18ed1d140a6347f (patch)
tree0ee4e3f18f3f72420eb832c014ebfd97794ab101 /courgette
parentb908f6894ec52c26b2c78ecbe3f2574e0c38d435 (diff)
downloadchromium_src-a9eae08445c9dd7cca02bc14b18ed1d140a6347f.zip
chromium_src-a9eae08445c9dd7cca02bc14b18ed1d140a6347f.tar.gz
chromium_src-a9eae08445c9dd7cca02bc14b18ed1d140a6347f.tar.bz2
Update out-of-date comments and error messages.
TEST= none BUG= none Review URL: https://codereview.chromium.org/1027883002 Cr-Commit-Position: refs/heads/master@{#321635}
Diffstat (limited to 'courgette')
-rw-r--r--courgette/patch_generator_x86_32.h8
-rw-r--r--courgette/patcher_x86_32.h7
2 files changed, 6 insertions, 9 deletions
diff --git a/courgette/patch_generator_x86_32.h b/courgette/patch_generator_x86_32.h
index 4a29a75..3610eeb 100644
--- a/courgette/patch_generator_x86_32.h
+++ b/courgette/patch_generator_x86_32.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This is the transformation and adjustment for Windows X86 executables.
-// The same code can be used for Windows X64 executables.
+// This is the transformation and adjustment for all executables.
+// The executable type is determined by ParseDetectedExecutable function.
#ifndef COURGETTE_WIN32_X86_GENERATOR_H_
#define COURGETTE_WIN32_X86_GENERATOR_H_
@@ -67,7 +67,7 @@ class PatchGeneratorX86_32 : public TransformationPatchGenerator {
old_element_->region().length(),
&old_program);
if (old_parse_status != C_OK) {
- LOG(ERROR) << "Cannot parse as WinPE " << old_element_->Name();
+ LOG(ERROR) << "Cannot parse an executable " << old_element_->Name();
return old_parse_status;
}
@@ -78,7 +78,7 @@ class PatchGeneratorX86_32 : public TransformationPatchGenerator {
&new_program);
if (new_parse_status != C_OK) {
DeleteAssemblyProgram(old_program);
- LOG(ERROR) << "Cannot parse as WinPE " << new_element_->Name();
+ LOG(ERROR) << "Cannot parse an executable " << new_element_->Name();
return new_parse_status;
}
diff --git a/courgette/patcher_x86_32.h b/courgette/patcher_x86_32.h
index 5625395..e984579 100644
--- a/courgette/patcher_x86_32.h
+++ b/courgette/patcher_x86_32.h
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This is the transformation for Windows X86 executables.
-// The same patcher can be used for Windows X64 executables.
-
#ifndef COURGETTE_WIN32_X86_PATCHER_H_
#define COURGETTE_WIN32_X86_PATCHER_H_
@@ -12,8 +9,8 @@
namespace courgette {
-// Courgette32X86Patcher is a TransformationPatcher for Windows 32-bit
-// and 64-bit executables. We can use the same patcher for both.
+// PatcherX86_32 is the universal patcher for all executables. The executable
+// type is determined by ParseDetectedExecutable function.
//
class PatcherX86_32 : public TransformationPatcher {
public: