[Wine-patches] Explicitly specify CDECL calling convention on exported functions.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Дек 29 15:52:28 MSK 2008


----------- следующая часть -----------
From ad0129957018e1bb8df8be2f59dbdc9a0a708c77 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 29 Dec 2008 15:41:48 +0300
Subject: [PATCH] Explicitly specify CDECL calling convention on exported functions.

---
 dlls/ntoskrnl.exe/ntoskrnl.c |    2 +-
 dlls/wineusbhub/wineusbhub.c |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 125903b..a87629c 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1106,7 +1106,7 @@ NTSTATUS WINAPI IoRegisterShutdownNotification( PDEVICE_OBJECT obj )
 /***********************************************************************
  *           wine_complete_request   (Not a Windows API)
  */
-void wine_complete_request( IRP *irp, UCHAR priority_boost )
+void CDECL wine_complete_request( IRP *irp, UCHAR priority_boost )
 {
     IO_STACK_LOCATION *irpsp;
     PIO_COMPLETION_ROUTINE routine;
diff --git a/dlls/wineusbhub/wineusbhub.c b/dlls/wineusbhub/wineusbhub.c
index 45a4046..2d93707 100644
--- a/dlls/wineusbhub/wineusbhub.c
+++ b/dlls/wineusbhub/wineusbhub.c
@@ -236,7 +236,7 @@ NTSTATUS WINAPI __wine_usbhub_dispatch_pnp( DEVICE_OBJECT *device, IRP *irp )
 }
 #endif
 
-DEVICE_OBJECT *__wine_usbhub_get_pdo( UCHAR *pdo_info )
+DEVICE_OBJECT CDECL *__wine_usbhub_get_pdo( UCHAR *pdo_info )
 {
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
     static const WCHAR usbpdoW[] = {'\\','D','e','v','i','c','e','\\',
@@ -269,7 +269,7 @@ DEVICE_OBJECT *__wine_usbhub_get_pdo( UCHAR *pdo_info )
     return NULL;
 }
 
-UNICODE_STRING *__wine_usbhub_get_pdo_name()
+UNICODE_STRING CDECL *__wine_usbhub_get_pdo_name()
 {
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
     if (pdo_name.Length)
@@ -278,7 +278,7 @@ UNICODE_STRING *__wine_usbhub_get_pdo_name()
     return NULL;
 }
 
-char *__wine_usbhub_get_instance_id()
+char CDECL *__wine_usbhub_get_instance_id()
 {
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
     if (*instance_id)
@@ -287,7 +287,7 @@ char *__wine_usbhub_get_instance_id()
     return NULL;
 }
 
-USHORT __wine_usbhub_get_vid()
+USHORT CDECL __wine_usbhub_get_vid()
 {
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
     if (usbdev != NULL)
@@ -296,7 +296,7 @@ USHORT __wine_usbhub_get_vid()
     return 0;
 }
 
-USHORT __wine_usbhub_get_pid()
+USHORT CDECL __wine_usbhub_get_pid()
 {
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
     if (usbdev != NULL)
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches