Commit 19aa67d1 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winebuild: Correct hotpatching prologue in import thunks for x86_64.

parent 301dde98
......@@ -576,7 +576,7 @@ void output_exports( DLLSPEC *spec )
else output( "\tjmp *__imp_%s\n", asm_name( get_link_name( odp )));
break;
case CPU_x86_64:
output( "\t.byte 0x48\n" ); /* hotpatch prolog */
output( "\t.byte 0x48,0x8d,0xa4,0x24,0x00,0x00,0x00,0x00\n" ); /* hotpatch prolog */
output( "\tjmp *__imp_%s(%%rip)\n", asm_name( get_link_name( odp )));
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment