summaryrefslogtreecommitdiff
path: root/utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-07-11 16:51:25 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-07-11 16:51:25 +0000
commitca5bb76d2b8f65aa97e50b633f828c1deb241526 (patch)
tree453a1b2de3a0dc0d0b2f7080d10d033bf8fbcdf1 /utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp
parent141774be48940d56e3ad4dbf451d245b61d4f8b2 (diff)
downloadrockbox-ca5bb76d2b8f65aa97e50b633f828c1deb241526.zip
rockbox-ca5bb76d2b8f65aa97e50b633f828c1deb241526.tar.gz
rockbox-ca5bb76d2b8f65aa97e50b633f828c1deb241526.tar.bz2
rockbox-ca5bb76d2b8f65aa97e50b633f828c1deb241526.tar.xz
Delete the svn:executable property and set svn:eol-style to native for all those text files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18012 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp')
-rw-r--r--[-rwxr-xr-x]utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp180
1 files changed, 90 insertions, 90 deletions
diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp b/utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp
index fe70110..1199e6b 100755..100644
--- a/utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp
+++ b/utils/zenutils/libraries/pelib-0.9/pelib/PeHeader.cpp
@@ -1,90 +1,90 @@
-/*
-* PeHeader.cpp - Part of the PeLib library.
-*
-* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com)
-* All rights reserved.
-*
-* This software is licensed under the zlib/libpng License.
-* For more details see http://www.opensource.org/licenses/zlib-license.php
-* or the license information file (license.htm) in the root directory
-* of PeLib.
-*/
-
-#include "PeLibInc.h"
-#include "PeHeader.h"
-
-namespace PeLib
-{
- template<>
- void PeHeaderT<32>::readBaseOfData(InputBuffer& ibBuffer, PELIB_IMAGE_NT_HEADERS<32>& header) const
- {
- ibBuffer >> header.OptionalHeader.BaseOfData;
- }
-
- template<>
- void PeHeaderT<64>::readBaseOfData(InputBuffer&, PELIB_IMAGE_NT_HEADERS<64>&) const
- {
- }
-
- template<>
- void PeHeaderT<32>::rebuildBaseOfData(OutputBuffer& obBuffer) const
- {
- obBuffer << m_inthHeader.OptionalHeader.BaseOfData;
- }
-
- template<>
- void PeHeaderT<64>::rebuildBaseOfData(OutputBuffer&) const
- {
- }
-
- template<>
- bool PeHeaderT<32>::isValid() const
- {
- return true;
- }
-
- template<>
- bool PeHeaderT<64>::isValid() const
- {
- return true;
- }
-
- template<>
- bool PeHeaderT<32>::isValid(unsigned int pehf) const
- {
- /*
- if (pehf == NtSignature)
- {
- return m_inthHeader.Signature == IMAGE_NT_SIGNATURE;
- }
- else if (pehf == NumberOfSections)
- {
- return getNumberOfSections() == calcNumberOfSections();
- } */
- return false;
- }
-
- template<>
- bool PeHeaderT<64>::isValid(unsigned int pehf) const
- {
- return false;
- }
-
- /**
- * @return The BaseOfData value from the PE header.
- **/
- dword PeHeader32::getBaseOfData() const
- {
- return m_inthHeader.OptionalHeader.BaseOfData;
- }
-
- /**
- * Changes the file's BaseOfData.
- * @param dwValue New value.
- **/
- void PeHeader32::setBaseOfData(dword dwValue)
- {
- m_inthHeader.OptionalHeader.BaseOfData = dwValue;
- }
-
-}
+/*
+* PeHeader.cpp - Part of the PeLib library.
+*
+* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com)
+* All rights reserved.
+*
+* This software is licensed under the zlib/libpng License.
+* For more details see http://www.opensource.org/licenses/zlib-license.php
+* or the license information file (license.htm) in the root directory
+* of PeLib.
+*/
+
+#include "PeLibInc.h"
+#include "PeHeader.h"
+
+namespace PeLib
+{
+ template<>
+ void PeHeaderT<32>::readBaseOfData(InputBuffer& ibBuffer, PELIB_IMAGE_NT_HEADERS<32>& header) const
+ {
+ ibBuffer >> header.OptionalHeader.BaseOfData;
+ }
+
+ template<>
+ void PeHeaderT<64>::readBaseOfData(InputBuffer&, PELIB_IMAGE_NT_HEADERS<64>&) const
+ {
+ }
+
+ template<>
+ void PeHeaderT<32>::rebuildBaseOfData(OutputBuffer& obBuffer) const
+ {
+ obBuffer << m_inthHeader.OptionalHeader.BaseOfData;
+ }
+
+ template<>
+ void PeHeaderT<64>::rebuildBaseOfData(OutputBuffer&) const
+ {
+ }
+
+ template<>
+ bool PeHeaderT<32>::isValid() const
+ {
+ return true;
+ }
+
+ template<>
+ bool PeHeaderT<64>::isValid() const
+ {
+ return true;
+ }
+
+ template<>
+ bool PeHeaderT<32>::isValid(unsigned int pehf) const
+ {
+ /*
+ if (pehf == NtSignature)
+ {
+ return m_inthHeader.Signature == IMAGE_NT_SIGNATURE;
+ }
+ else if (pehf == NumberOfSections)
+ {
+ return getNumberOfSections() == calcNumberOfSections();
+ } */
+ return false;
+ }
+
+ template<>
+ bool PeHeaderT<64>::isValid(unsigned int pehf) const
+ {
+ return false;
+ }
+
+ /**
+ * @return The BaseOfData value from the PE header.
+ **/
+ dword PeHeader32::getBaseOfData() const
+ {
+ return m_inthHeader.OptionalHeader.BaseOfData;
+ }
+
+ /**
+ * Changes the file's BaseOfData.
+ * @param dwValue New value.
+ **/
+ void PeHeader32::setBaseOfData(dword dwValue)
+ {
+ m_inthHeader.OptionalHeader.BaseOfData = dwValue;
+ }
+
+}