small combo patch.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Comboboxes are showing "funny" characters after the normal text.

Changelog:
	controls/	: combo.c

	In CBPaintText use the text size as returned by LB_GETTEXT.
	The size returned by LB_GETTEXTLEN may be too large.

Rein.
-- 
Rein Klazes
rklazes@xs4all.nl
--- wine/controls/combo.c	Tue Nov  6 22:01:32 2001
+++ mywine/controls/combo.c	Tue Jan 15 09:17:55 2002
@@ -747,7 +747,8 @@
         size = SendMessageW(lphc->hWndLBox, LB_GETTEXTLEN, id, 0);
         if( (pText = HeapAlloc( GetProcessHeap(), 0, (size + 1) * sizeof(WCHAR))) )
 	{
-	    SendMessageW(lphc->hWndLBox, LB_GETTEXT, (WPARAM)id, (LPARAM)pText);
+            /* size from LB_GETTEXTLEN may be too large, from LB_GETTEXT is accurate */
+	    size=SendMessageW(lphc->hWndLBox, LB_GETTEXT, (WPARAM)id, (LPARAM)pText);
 	    pText[size] = '\0';	/* just in case */
 	} else return;
    }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux