Module: wine Branch: master Commit: d98b83bed55f5df4d117c91d55fe24d6bc2ea61d URL: http://source.winehq.org/git/wine.git/?a=commit;h=d98b83bed55f5df4d117c91d55...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Nov 8 18:56:48 2007 +0000
user32: Constify some variables.
---
dlls/user32/button.c | 2 +- dlls/user32/combo.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/user32/button.c b/dlls/user32/button.c index 46940f0..6e21bbc 100644 --- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -723,7 +723,7 @@ static BOOL CALLBACK BUTTON_DrawTextCallback(HDC hdc, LPARAM lp, WPARAM wp, int * * Common function for drawing button label. */ -static void BUTTON_DrawLabel(HWND hwnd, HDC hdc, UINT dtFlags, RECT *rc) +static void BUTTON_DrawLabel(HWND hwnd, HDC hdc, UINT dtFlags, const RECT *rc) { DRAWSTATEPROC lpOutputProc = NULL; LPARAM lp; diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c index 4279297..1709f28 100644 --- a/dlls/user32/combo.c +++ b/dlls/user32/combo.c @@ -835,9 +835,9 @@ static void CBPaintText( * CBPaintBorder */ static void CBPaintBorder( - HWND hwnd, - LPHEADCOMBO lphc, - HDC hdc) + HWND hwnd, + const HEADCOMBO *lphc, + HDC hdc) { RECT clientRect;
@@ -1541,8 +1541,8 @@ static LRESULT COMBO_GetTextA( LPHEADCOMBO lphc, INT count, LPSTR buf ) */ static void CBResetPos( LPHEADCOMBO lphc, - LPRECT rectEdit, - LPRECT rectLB, + const RECT *rectEdit, + const RECT *rectLB, BOOL bRedraw) { BOOL bDrop = (CB_GETTYPE(lphc) != CBS_SIMPLE); @@ -1804,7 +1804,7 @@ static void COMBO_MouseMove( LPHEADCOMBO lphc, WPARAM wParam, LPARAM lParam ) } }
-static LRESULT COMBO_GetComboBoxInfo(LPHEADCOMBO lphc, COMBOBOXINFO *pcbi) +static LRESULT COMBO_GetComboBoxInfo(const HEADCOMBO *lphc, COMBOBOXINFO *pcbi) { if (!pcbi || (pcbi->cbSize < sizeof(COMBOBOXINFO))) return FALSE;