linker/lib: Modernize code base and remote std.c/hpp

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-01-19 18:29:24 +01:00
parent 10f664ce85
commit ccc0d14b66
8 changed files with 45 additions and 75 deletions
+4 -5
View File
@@ -1,8 +1,7 @@
#include "dlltoexe.hpp"
#include "std.hpp"
#include <fstream>
using namespace std;
#include <Windows.h>
#pragma pack(push, 1)
struct Head {
@@ -41,10 +40,10 @@ bool dllToExe(const char* exe_file, const char* dll_file, const char* entry_func
return false;
//Convert dll to exe
fstream in(dll_file, ios_base::binary | ios_base::in);
std::fstream in(dll_file, std::ios_base::binary | std::ios_base::in);
if (!in.is_open())
return false;
fstream out(exe_file, ios::binary | ios_base::out | ios_base::trunc);
std::fstream out(exe_file, std::ios::binary | std::ios_base::out | std::ios_base::trunc);
if (!out.is_open())
return false;