winebuild: Use cdecl calling convention for stub exceptions.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47226
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alexandre Julliard 2019-05-18 21:56:32 +02:00
parent b8743f1f0b
commit 1f6681f474
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@
#include "winbase.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];

View File

@ -1250,13 +1250,13 @@ void output_stubs( DLLSPEC *spec )
output( "\tcall %s\n", asm_name("__wine_spec_unimplemented_stub") );
break;
case CPU_x86_64:
output( "\tsubq $8,%%rsp\n" );
output( "\tsubq $0x28,%%rsp\n" );
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)
output( "leaq .L%s_string(%%rip),%%rsi\n", name );
output( "leaq .L%s_string(%%rip),%%rdx\n", name );
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") );
break;
case CPU_ARM: