Alexandre Julliard : vcomp: Fix varargs calling conventions.

Alexandre Julliard julliard at winehq.org
Thu Feb 18 16:06:07 CST 2021


Module: wine
Branch: master
Commit: 5b1c2668b28d2939cba28e9d6f24034fdc917e44
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5b1c2668b28d2939cba28e9d6f24034fdc917e44

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Feb 18 22:37:28 2021 +0100

vcomp: Fix varargs calling conventions.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/vcomp/main.c              | 2 +-
 dlls/vcomp110/tests/vcomp110.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c
index fa0b84300f1..90caac83750 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -1772,7 +1772,7 @@ static void CDECL c2vectparallel_wrapper(int start, int end, int step, int end_i
     _vcomp_fork_call_wrapper(function, nargs, wrapper_args);
 }
 
-void CDECL C2VectParallel(int start, int end, int step, BOOL end_included, int thread_count,
+void WINAPIV C2VectParallel(int start, int end, int step, BOOL end_included, int thread_count,
         BOOL dynamic_distribution, void *function, int nargs, ...)
 {
     struct vcomp_thread_data *thread_data;
diff --git a/dlls/vcomp110/tests/vcomp110.c b/dlls/vcomp110/tests/vcomp110.c
index 65e3c36aa01..e0be668dffd 100644
--- a/dlls/vcomp110/tests/vcomp110.c
+++ b/dlls/vcomp110/tests/vcomp110.c
@@ -23,7 +23,7 @@
 
 static HMODULE vcomp_handle;
 
-static void  (CDECL   *pC2VectParallel)(int start, int end, int step, BOOL end_included, int thread_count,
+static void  (WINAPIV *pC2VectParallel)(int start, int end, int step, BOOL end_included, int thread_count,
         BOOL dynamic_distribution, void *function, int nargs, ...);
 static int   (CDECL   *p_vcomp_get_thread_num)(void);
 static int   (CDECL   *pomp_get_num_threads)(void);




More information about the wine-cvs mailing list