Implemented MakeCalls function to reduce code duplication.

Updated version number.
This commit is contained in:
NovaRain
2018-03-16 11:32:23 +08:00
parent 9e28f8bdfd
commit 1a108cade5
4 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
;sfall configuration settings
;v4.0.3
;v4.0.4
[Main]
;Change to 1 if you want to use command line args to tell sfall to use another ini file.
+6
View File
@@ -65,6 +65,12 @@ void HookCalls(void* func, std::initializer_list<DWORD> addrs) {
}
}
void MakeCalls(void* func, std::initializer_list<DWORD> addrs) {
for (auto addr : addrs) {
MakeCall(addr, func);
}
}
void SafeMemSet(DWORD addr, BYTE val, int len) {
DWORD oldProtect;
+1
View File
@@ -42,5 +42,6 @@ void SafeMemSet(DWORD addr, BYTE val, int len);
void SafeWriteBytes(DWORD addr, BYTE* data, int count);
void HookCalls(void* func, std::initializer_list<DWORD> addrs);
void MakeCalls(void* func, std::initializer_list<DWORD> addrs);
}
+3 -3
View File
@@ -24,13 +24,13 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 0
#define VERSION_BUILD 3
#define VERSION_BUILD 4
#define VERSION_REV 0
#ifdef WIN2K
#define VERSION_STRING "4.0.3 win2k"
#define VERSION_STRING "4.0.4 win2k"
#else
#define VERSION_STRING "4.0.3"
#define VERSION_STRING "4.0.4"
#endif
#define CHECK_VAL (4)