Changeset 4663
- Timestamp:
- 10/04/10 23:37:41 (3 years ago)
- Location:
- zzuf/trunk/src/libzzuf
- Files:
-
- 4 edited
-
lib-load.h (modified) (1 diff)
-
lib-stream.c (modified) (1 diff)
-
lib-win32.c (modified) (1 diff)
-
sys.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/libzzuf/lib-load.h
r4659 r4663 51 51 zzuf_table_t; 52 52 53 # define DIVERT(x) { "kernel32.dll", #x, \ 54 (void **)&x##_orig, (void *)x##_new } 55 # define DIVERT_END { NULL, NULL, NULL, NULL } 56 57 extern zzuf_table_t table_stream[], 58 table_win32[]; 53 extern zzuf_table_t table_win32[]; 59 54 60 55 #else 61 56 # error no function diversion system for this platform 62 57 #endif 63 -
zzuf/trunk/src/libzzuf/lib-stream.c
r4657 r4663 1146 1146 } 1147 1147 #endif 1148 1149 /* Win32 function table */1150 #if defined _WIN321151 zzuf_table_t table_stream[] =1152 {1153 DIVERT(fopen),1154 DIVERT(fread),1155 DIVERT(fclose),1156 DIVERT_END1157 };1158 #endif1159 -
zzuf/trunk/src/libzzuf/lib-win32.c
r4662 r4663 114 114 /* Win32 function table */ 115 115 #if defined _WIN32 116 # define DIVERT(x) { "kernel32.dll", #x, \ 117 (void **)&x##_orig, (void *)x##_new } 118 # define DIVERT_END { NULL, NULL, NULL, NULL } 119 116 120 zzuf_table_t table_win32[] = 117 121 { -
zzuf/trunk/src/libzzuf/sys.c
r4656 r4663 94 94 static zzuf_table_t *list[] = 95 95 { 96 table_stream,97 96 table_win32, 98 97 }; … … 140 139 141 140 /* FIXME: The StarCraft 2 hack uses two methods for function 142 * diversion. See HookSsdt() and HookHotPatch(). */141 * diversion. See HookSsdt() and HookHotPatch(). */ 143 142 VirtualProtect(func, sizeof(func), PAGE_EXECUTE_READWRITE, &dummy); 144 143 WriteProcessMemory(GetCurrentProcess(), func, &diversion->new, … … 151 150 } 152 151 #endif 153
Note: See TracChangeset
for help on using the changeset viewer.
