summaryrefslogtreecommitdiff
path: root/internal_rewrite/Source.cpp
diff options
context:
space:
mode:
authorJustSomePwner <crotchyalt@gmail.com>2018-09-01 16:43:05 +0200
committerJustSomePwner <crotchyalt@gmail.com>2018-09-01 16:43:05 +0200
commit30485d2a5eb12048ebf935b02cbb048da535670c (patch)
tree96a191371b02690a7aaa1258532340ebcb8e09c3 /internal_rewrite/Source.cpp
parenta6c44012de7e5ed71066b6e8637afdbddf8ea8dd (diff)
fixing hungry nave code
Diffstat (limited to 'internal_rewrite/Source.cpp')
-rw-r--r--internal_rewrite/Source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal_rewrite/Source.cpp b/internal_rewrite/Source.cpp
index 6d60ce5..4e826bb 100644
--- a/internal_rewrite/Source.cpp
+++ b/internal_rewrite/Source.cpp
@@ -53,8 +53,8 @@ int __stdcall DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved ) {
#ifdef HEADER_MODULE
memcpy( &g_header, inst, sizeof( g_header ) );
- for( szie_t i = 1; i < sizeof( header_t ); ++i ) {
- ( uint8_t* )( uintptr_t( &g_header ) + i ) ^= g_header.xor_key;
+ for( size_t i = 1; i < sizeof( header_t ); ++i ) {
+ *( uint8_t* )( uintptr_t( &g_header ) + i ) ^= g_header.xor_key;
}
#endif