- Don't rely on the default calling convention being cdecl for function pointers
[reactos.git] / reactos / lib / sdk / crt / search / lsearch.c
index 053f9a3..fa46e91 100644 (file)
@@ -6,7 +6,7 @@
  * @implemented
  */
 void *_lsearch(const void *key, void *base, unsigned int *nelp, unsigned int width,
-         int (*compar)(const void *, const void *))
+         int (__cdecl *compar)(const void *, const void *))
 {
   void *ret_find = _lfind(key,base,nelp,width,compar);