summaryrefslogtreecommitdiffstats
path: root/courgette/disassembler.cc
diff options
context:
space:
mode:
authordgarrett@chromium.org <dgarrett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-31 22:09:40 +0000
committerdgarrett@chromium.org <dgarrett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-31 22:09:40 +0000
commitc5fc1df3631f016cc609a2a022fea324a0f0e4bd (patch)
tree903589aec8931178fba92e4099b6fb3cd1691c9d /courgette/disassembler.cc
parent6915c26061c9a6e67602d72ebc7bb7e02a593e9d (diff)
downloadchromium_src-c5fc1df3631f016cc609a2a022fea324a0f0e4bd.zip
chromium_src-c5fc1df3631f016cc609a2a022fea324a0f0e4bd.tar.gz
chromium_src-c5fc1df3631f016cc609a2a022fea324a0f0e4bd.tar.bz2
Last small bit of refactoring.
Move the Win32X86Generator and Patcher classes to non-windows specific names since they can be reused untouched for Elf. Move them from one file to files with matching names while at it. Store the transformation kind on the generator class so that it can be know if it's PE or Elf. Unified the TransformationId and ExecutableType enums into a single enum used everywhere (defined in courgette.h since it's now part of the external API). BUG=chromium-os:22149 TEST=Unittests Review URL: http://codereview.chromium.org/8417045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/disassembler.cc')
-rw-r--r--courgette/disassembler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/courgette/disassembler.cc b/courgette/disassembler.cc
index edacd4b..5514be9 100644
--- a/courgette/disassembler.cc
+++ b/courgette/disassembler.cc
@@ -50,7 +50,7 @@ Status DetectExecutableType(const void* buffer, size_t length,
}
// We failed to detect anything
- *type = UNKNOWN;
+ *type = EXE_UNKNOWN;
*detected_length = 0;
return C_INPUT_NOT_RECOGNIZED;
}