Commit 1f6681f4 authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Use cdecl calling convention for stub exceptions.

parent b8743f1f
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "winbase.h" #include "winbase.h"
#include "wine/exception.h" #include "wine/exception.h"
void DECLSPEC_HIDDEN __wine_spec_unimplemented_stub( const char *module, const char *function ) void DECLSPEC_HIDDEN __cdecl __wine_spec_unimplemented_stub( const char *module, const char *function )
{ {
ULONG_PTR args[2]; ULONG_PTR args[2];
......
...@@ -1250,13 +1250,13 @@ void output_stubs( DLLSPEC *spec ) ...@@ -1250,13 +1250,13 @@ void output_stubs( DLLSPEC *spec )
output( "\tcall %s\n", asm_name("__wine_spec_unimplemented_stub") ); output( "\tcall %s\n", asm_name("__wine_spec_unimplemented_stub") );
break; break;
case CPU_x86_64: case CPU_x86_64:
output( "\tsubq $8,%%rsp\n" ); output( "\tsubq $0x28,%%rsp\n" );
output_cfi( ".cfi_adjust_cfa_offset 8" ); output_cfi( ".cfi_adjust_cfa_offset 8" );
output( "\tleaq .L__wine_spec_file_name(%%rip),%%rdi\n" ); output( "\tleaq .L__wine_spec_file_name(%%rip),%%rcx\n" );
if (exp_name) if (exp_name)
output( "leaq .L%s_string(%%rip),%%rsi\n", name ); output( "leaq .L%s_string(%%rip),%%rdx\n", name );
else else
output( "\tmovq $%d,%%rsi\n", odp->ordinal ); output( "\tmovq $%d,%%rdx\n", odp->ordinal );
output( "\tcall %s\n", asm_name("__wine_spec_unimplemented_stub") ); output( "\tcall %s\n", asm_name("__wine_spec_unimplemented_stub") );
break; break;
case CPU_ARM: case CPU_ARM:
......
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