Alexandre Julliard : evr: Make qsort and bsearch callback functions cdecl.

Alexandre Julliard julliard at winehq.org
Mon Jan 18 17:00:36 CST 2021


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Jan 16 11:46:02 2021 +0100

evr: Make qsort and bsearch callback functions cdecl.

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

---

 dlls/evr/mixer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/evr/mixer.c b/dlls/evr/mixer.c
index a7ce3949bec..52fc7d0cfcc 100644
--- a/dlls/evr/mixer.c
+++ b/dlls/evr/mixer.c
@@ -159,7 +159,7 @@ static struct video_mixer *impl_from_IMFClockStateSink(IMFClockStateSink *iface)
     return CONTAINING_RECORD(iface, struct video_mixer, IMFClockStateSink_iface);
 }
 
-static int video_mixer_compare_input_id(const void *a, const void *b)
+static int __cdecl video_mixer_compare_input_id(const void *a, const void *b)
 {
     const unsigned int *key = a;
     const struct input_stream *input = b;
@@ -509,7 +509,7 @@ static HRESULT WINAPI video_mixer_transform_DeleteInputStream(IMFTransform *ifac
     return hr;
 }
 
-static int video_mixer_add_input_sort_compare(const void *a, const void *b)
+static int __cdecl video_mixer_add_input_sort_compare(const void *a, const void *b)
 {
     const struct input_stream *left = a, *right = b;
     return left->id != right->id ? (left->id < right->id ? -1 : 1) : 0;
@@ -643,7 +643,7 @@ done:
     return hr;
 }
 
-static int rt_formats_sort_compare(const void *left, const void *right)
+static int __cdecl rt_formats_sort_compare(const void *left, const void *right)
 {
     const struct rt_format *format1 = left, *format2 = right;
 




More information about the wine-cvs mailing list