[COMCTL32] -Make the lautus hack a bit more strict.
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 5 Mar 2017 09:14:12 +0000 (09:14 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 5 Mar 2017 09:14:12 +0000 (09:14 +0000)
svn path=/trunk/; revision=74073

reactos/dll/win32/comctl32/button.c

index 31f4023..4e62372 100644 (file)
@@ -343,7 +343,7 @@ BOOL BUTTON_GetIdealSize(HTHEME theme, HWND hwnd, SIZE* psize)
 
     GetTextExtentPoint32W(hdc, text, wcslen(text), &TextSize);
 
-    if (logfont.lfHeight == -1 && logfont.lfWidth == 0 && wcscmp(logfont.lfFaceName, L"Arial") == 0)
+    if (logfont.lfHeight == -1 && logfont.lfWidth == 0 && wcscmp(logfont.lfFaceName, L"Arial") == 0 && wcscmp(text, L"Start") == 0)
     {
         TextSize.cx = 5;
         TextSize.cy = 4;