File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
opal/mca/patcher/overwrite Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ static int mca_patcher_overwrite_apply_patch (mca_patcher_base_patch_t *patch)
90
90
#if defined(__i386__ )
91
91
patch -> patch_data_size = 5 ;
92
92
* (unsigned char * )(patch -> patch_data + 0 ) = 0xe9 ;
93
- * (unsigned int * ) (patch -> patch_data + 1 ) = (unsigned int )(func_new_addr - func_old_addr - 5 );
93
+ * (unsigned int * ) (patch -> patch_data + 1 ) = (unsigned int )(func_new_addr - patch -> patch_orig - 5 );
94
94
#elif defined(__x86_64__ )
95
95
patch -> patch_data_size = 13 ;
96
96
* (unsigned short * )(patch -> patch_data + 0 ) = 0xbb49 ;
@@ -237,7 +237,7 @@ static int mca_patcher_overwrite_apply_patch (mca_patcher_base_patch_t *patch)
237
237
238
238
#endif
239
239
240
- static int mca_patcher_overwrite_patch_address (uintptr_t sys_addr , unsigned long hook_addr )
240
+ static int mca_patcher_overwrite_patch_address (uintptr_t sys_addr , uintptr_t hook_addr )
241
241
{
242
242
mca_patcher_base_patch_t * patch ;
243
243
int rc ;
You can’t perform that action at this time.
0 commit comments