Correct the test for the ODS_SELECTED bit in the WM_DRAWITEM message
handler.
diff --git a/dlls/commdlg/fontdlg.c b/dlls/commdlg/fontdlg.c
index d63259c..29e3915 100644
--- a/dlls/commdlg/fontdlg.c
+++ b/dlls/commdlg/fontdlg.c
@@ -823,7 +823,7 @@
{
if (lpdi->CtlType == ODT_COMBOBOX)
{
- if (lpdi->itemState ==ODS_SELECTED)
+ if (lpdi->itemState & ODS_SELECTED)
{
hBrush=GetSysColorBrush(COLOR_HIGHLIGHT);
oldText=SetTextColor(lpdi->hDC, GetSysColor(COLOR_HIGHLIGHTTEXT));
@@ -898,7 +898,7 @@
default:
return TRUE; /* this should never happen */
}
- if (lpdi->itemState == ODS_SELECTED)
+ if (lpdi->itemState & ODS_SELECTED)
{
SetTextColor(lpdi->hDC, oldText);
SetBkColor(lpdi->hDC, oldBk);