[PATCH] wintab32/winex11.drv: Add __cdecl to exported functions
Maarten Lankhorst
m.b.lankhorst at gmail.com
Tue Dec 16 07:30:37 CST 2008
---
dlls/winex11.drv/wintab.c | 16 ++++++++--------
dlls/wintab32/wintab32.c | 8 ++++----
dlls/wintab32/wintab_internal.h | 8 ++++----
3 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index c997c7c..289e6aa 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -484,7 +484,7 @@ static void disable_system_cursors(void)
/***********************************************************************
* X11DRV_LoadTabletInfo (X11DRV.@)
*/
-void X11DRV_LoadTabletInfo(HWND hwnddefault)
+void __cdecl X11DRV_LoadTabletInfo(HWND hwnddefault)
{
const WCHAR SZ_CONTEXT_NAME[] = {'W','i','n','e',' ','T','a','b','l','e','t',' ','C','o','n','t','e','x','t',0};
const WCHAR SZ_DEVICE_NAME[] = {'W','i','n','e',' ','T','a','b','l','e','t',' ','D','e','v','i','c','e',0};
@@ -959,7 +959,7 @@ static void proximity_event( HWND hwnd, XEvent *event )
/***********************************************************************
* X11DRV_AttachEventQueueToTablet (X11DRV.@)
*/
-int X11DRV_AttachEventQueueToTablet(HWND hOwner)
+int __cdecl X11DRV_AttachEventQueueToTablet(HWND hOwner)
{
struct x11drv_thread_data *data = x11drv_init_thread_data();
int num_devices;
@@ -1041,7 +1041,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
/***********************************************************************
* X11DRV_GetCurrentPacket (X11DRV.@)
*/
-int X11DRV_GetCurrentPacket(LPWTPACKET packet)
+int __cdecl X11DRV_GetCurrentPacket(LPWTPACKET packet)
{
*packet = gMsgPacket;
return 1;
@@ -1062,7 +1062,7 @@ static inline int CopyTabletData(LPVOID target, LPCVOID src, INT size)
/***********************************************************************
* X11DRV_WTInfoW (X11DRV.@)
*/
-UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
+UINT __cdecl X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
{
/*
* It is valid to call WTInfoA with lpOutput == NULL, as per standard.
@@ -1488,7 +1488,7 @@ UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
/***********************************************************************
* AttachEventQueueToTablet (X11DRV.@)
*/
-int X11DRV_AttachEventQueueToTablet(HWND hOwner)
+int __cdecl X11DRV_AttachEventQueueToTablet(HWND hOwner)
{
return 0;
}
@@ -1496,7 +1496,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
/***********************************************************************
* GetCurrentPacket (X11DRV.@)
*/
-int X11DRV_GetCurrentPacket(LPWTPACKET packet)
+int __cdecl X11DRV_GetCurrentPacket(LPWTPACKET packet)
{
return 0;
}
@@ -1504,14 +1504,14 @@ int X11DRV_GetCurrentPacket(LPWTPACKET packet)
/***********************************************************************
* LoadTabletInfo (X11DRV.@)
*/
-void X11DRV_LoadTabletInfo(HWND hwnddefault)
+void __cdecl X11DRV_LoadTabletInfo(HWND hwnddefault)
{
}
/***********************************************************************
* WTInfoW (X11DRV.@)
*/
-UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
+UINT __cdecl X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
{
return 0;
}
diff --git a/dlls/wintab32/wintab32.c b/dlls/wintab32/wintab32.c
index 5f2afb1..644ca79 100644
--- a/dlls/wintab32/wintab32.c
+++ b/dlls/wintab32/wintab32.c
@@ -36,10 +36,10 @@ static const WCHAR
WC_TABLETCLASSNAME[] = {'W','i','n','e','T','a','b','l','e','t','C','l','a','s','s',0};
CRITICAL_SECTION csTablet;
-int (*pLoadTabletInfo)(HWND hwnddefault) = NULL;
-int (*pGetCurrentPacket)(LPWTPACKET packet) = NULL;
-int (*pAttachEventQueueToTablet)(HWND hOwner) = NULL;
-UINT (*pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput) = NULL;
+int (*__cdecl pLoadTabletInfo)(HWND hwnddefault) = NULL;
+int (*__cdecl pGetCurrentPacket)(LPWTPACKET packet) = NULL;
+int (*__cdecl pAttachEventQueueToTablet)(HWND hOwner) = NULL;
+UINT (*__cdecl pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput) = NULL;
static LRESULT WINAPI TABLET_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
LPARAM lParam);
diff --git a/dlls/wintab32/wintab_internal.h b/dlls/wintab32/wintab_internal.h
index 4fa4bfd..da69a3c 100644
--- a/dlls/wintab32/wintab_internal.h
+++ b/dlls/wintab32/wintab_internal.h
@@ -151,10 +151,10 @@ int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam,
LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd);
/* X11drv functions */
-extern int (*pLoadTabletInfo)(HWND hwnddefault);
-extern int (*pGetCurrentPacket)(LPWTPACKET packet);
-extern int (*pAttachEventQueueToTablet)(HWND hOwner);
-extern UINT (*pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput);
+extern int (*__cdecl pLoadTabletInfo)(HWND hwnddefault);
+extern int (*__cdecl pGetCurrentPacket)(LPWTPACKET packet);
+extern int (*__cdecl pAttachEventQueueToTablet)(HWND hOwner);
+extern UINT (*__cdecl pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput);
extern HWND hwndDefault;
extern CRITICAL_SECTION csTablet;
--
1.5.6.5
--------------050307030900030901020109--
More information about the wine-patches
mailing list