Francois Gouget : user32: Remove WINAPI/ CALLBACK on static functions where not needed.
Alexandre Julliard
julliard at winehq.org
Tue Nov 25 07:21:20 CST 2008
Module: wine
Branch: master
Commit: 31df4d42b7388fda19c52f11476c5e56b04e2964
URL: http://source.winehq.org/git/wine.git/?a=commit;h=31df4d42b7388fda19c52f11476c5e56b04e2964
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Mon Nov 24 17:23:35 2008 +0100
user32: Remove WINAPI/CALLBACK on static functions where not needed.
---
dlls/user32/button.c | 4 ++--
dlls/user32/edit.c | 8 ++++----
dlls/user32/listbox.c | 4 ++--
dlls/user32/tests/class.c | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dlls/user32/button.c b/dlls/user32/button.c
index 25a94a3..84b54ab 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -229,8 +229,8 @@ static void setup_clipping( HWND hwnd, HDC hdc )
/***********************************************************************
* ButtonWndProc_common
*/
-static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
- WPARAM wParam, LPARAM lParam, BOOL unicode )
+static LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg,
+ WPARAM wParam, LPARAM lParam, BOOL unicode )
{
RECT rect;
POINT pt;
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 97ee3a8..6914906 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -223,7 +223,7 @@ static void EDIT_AdjustFormatRect(EDITSTATE *es);
static void EDIT_SetRectNP(EDITSTATE *es, const RECT *lprc);
static void EDIT_UnlockBuffer(EDITSTATE *es, BOOL force);
static void EDIT_UpdateScrollInfo(EDITSTATE *es);
-static INT CALLBACK EDIT_WordBreakProc(LPWSTR s, INT index, INT count, INT action);
+static INT EDIT_WordBreakProc(LPWSTR s, INT index, INT count, INT action);
/*
* EM_XXX message handlers
*/
@@ -449,8 +449,8 @@ static inline INT get_vertical_line_count(EDITSTATE *es)
* names).
*
*/
-static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
- WPARAM wParam, LPARAM lParam, BOOL unicode )
+static LRESULT EditWndProc_common( HWND hwnd, UINT msg,
+ WPARAM wParam, LPARAM lParam, BOOL unicode )
{
EDITSTATE *es = (EDITSTATE *)GetWindowLongPtrW( hwnd, 0 );
LRESULT result = 0;
@@ -2602,7 +2602,7 @@ static void EDIT_UpdateScrollInfo(EDITSTATE *es)
* internally, so we can decide this for ourselves.
*
*/
-static INT CALLBACK EDIT_WordBreakProc(LPWSTR s, INT index, INT count, INT action)
+static INT EDIT_WordBreakProc(LPWSTR s, INT index, INT count, INT action)
{
INT ret = 0;
diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index 0c24e71..9b2378d 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -2606,8 +2606,8 @@ static BOOL LISTBOX_Destroy( LB_DESCR *descr )
/***********************************************************************
* ListBoxWndProc_common
*/
-static LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
- WPARAM wParam, LPARAM lParam, BOOL unicode )
+static LRESULT ListBoxWndProc_common( HWND hwnd, UINT msg,
+ WPARAM wParam, LPARAM lParam, BOOL unicode )
{
LB_DESCR *descr = (LB_DESCR *)GetWindowLongPtrW( hwnd, 0 );
LPHEADCOMBO lphc = 0;
diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index 20035cb..ce6d020 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -814,7 +814,7 @@ static BOOL RegisterTestDialog(HINSTANCE hInstance)
/* test registering a dialog box created by using the CLASS directive in a
resource file, then test creating the dialog using CreateDialogParam. */
-static void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
+static void CreateDialogParamTest(HINSTANCE hInstance)
{
HWND hWndMain;
More information about the wine-cvs
mailing list