Skip to content

Commit

Permalink
Fix linter issues. Remove ntundoc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
raffclar committed Nov 26, 2017
1 parent 89c1a4d commit e628e51
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 291 deletions.
257 changes: 0 additions & 257 deletions include/ntundoc.h

This file was deleted.

5 changes: 0 additions & 5 deletions src/PeAssembly.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// Created by gavxn on 10/08/2017.
//

#include "PeAssembly.hpp"
#include <string>

namespace PeEpIntercept {
std::string EntryRedirectAssemblyX64(uint32_t oep) {
Expand Down
5 changes: 1 addition & 4 deletions src/PeAssembly.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Created by gavxn on 10/08/2017.
//

#ifndef PE_EP_INTERCEPT_PEASSEMBLY_HPP
#define PE_EP_INTERCEPT_PEASSEMBLY_HPP

Expand All @@ -19,4 +15,5 @@ namespace PeEpIntercept {
std::string EntryRedirectAssemblyX86(uint32_t oep);
}


#endif //PE_EP_INTERCEPT_PEASSEMBLY_HPP
8 changes: 1 addition & 7 deletions src/PeFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
#include <vector>
#include <fstream>

//#include "windows.h"
//#include <imagehlp.h>
//
// http://www.ntinternals.net
// Tomasz Nowak, 2000-2015.
//#include "ntundoc.h"

#include "PeAssembly.hpp"
#include "PeStructs.hpp"

Expand Down Expand Up @@ -49,4 +42,5 @@ namespace PeEpIntercept {
};
}


#endif //PE_EP_INTERCEPT_PEFILE_HPP
4 changes: 0 additions & 4 deletions src/PePatch.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Created by gavxn on 26/11/2017.
//

#include "PePatch.hpp"

PeEpIntercept::PePatch::PePatch(std::string &path) : PeFile(path) {
Expand Down
7 changes: 1 addition & 6 deletions src/PePatchX64.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
//
// Created by gavxn on 15/08/2017.
//

#include <cstring>
#include "PePatchX64.hpp"
#include "PeStructs.hpp"

namespace PeEpIntercept {
PePatchX64::PePatchX64(std::string &path) : PePatch(path) {
Expand Down Expand Up @@ -78,7 +73,7 @@ namespace PeEpIntercept {
}

void PePatchX64::SaveFile(std::string new_path, std::vector<char> code_buffer) {
if(code_buffer.empty()) {
if (code_buffer.empty()) {
throw std::runtime_error("Unable to write empty code section");
}

Expand Down
4 changes: 0 additions & 4 deletions src/PePatchX86.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Created by gavxn on 15/08/2017.
//

#include "PePatchX86.hpp"

namespace PeEpIntercept {
Expand Down
5 changes: 1 addition & 4 deletions src/PeStructs.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Created by gavxn on 30/06/2017.
//

#ifndef PE_EP_INTERCEPT_PESTRUCTS_HPP
#define PE_EP_INTERCEPT_PESTRUCTS_HPP

Expand Down Expand Up @@ -189,4 +185,5 @@ namespace PeEpIntercept {
} ImportByName, *ImportByNamePtr;
}


#endif //PE_EP_INTERCEPT_PESTRUCTS_HPP

0 comments on commit e628e51

Please sign in to comment.