user32: Remove unneeded RECT parameter from CBPaintText helper.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
index f35e0d9..4b6bc4f 100644
--- a/dlls/user32/combo.c
+++ b/dlls/user32/combo.c
@@ -652,9 +652,9 @@
*/
static void CBPaintText(
LPHEADCOMBO lphc,
- HDC hdc,
- RECT rectEdit)
+ HDC hdc)
{
+ RECT rectEdit = lphc->textRect;
INT id, size = 0;
LPWSTR pText = NULL;
@@ -880,7 +880,7 @@
}
if( !(lphc->wState & CBF_EDIT) )
- CBPaintText( lphc, hDC, lphc->textRect);
+ CBPaintText( lphc, hDC );
if( hPrevBrush )
SelectObject( hDC, hPrevBrush );