[CHARMAP][IMAGESOFT]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 12 Apr 2014 23:12:46 +0000 (23:12 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 12 Apr 2014 23:12:46 +0000 (23:12 +0000)
Be sure to enumerate *all* the fonts.

svn path=/trunk/; revision=62726

reactos/base/applications/charmap/charmap.c
rosapps/applications/imagesoft/font.c

index ed00aa1..f3d7829 100644 (file)
@@ -36,7 +36,7 @@ EnumFontNames(ENUMLOGFONTEXW *lpelfe,
 
     /* make sure font doesn't already exist in our list */
     if(SendMessageW(hwndCombo,
-                    CB_FINDSTRING,
+                    CB_FINDSTRINGEXACT,
                     0,
                     (LPARAM)pszName) == CB_ERR)
     {
index 93e1a7c..1f696cb 100644 (file)
@@ -50,7 +50,7 @@ EnumFontNames(ENUMLOGFONTEX *lpelfe,
 \r
     /* make sure font doesn't already exist in our list */\r
     if(SendMessage(hwndCombo,\r
-                   CB_FINDSTRING,\r
+                   CB_FINDSTRINGEXACT,\r
                    0,\r
                    (LPARAM)pszName) == CB_ERR)\r
     {\r