Author: gschneider Date: Fri Apr 16 16:30:40 2010 New Revision: 46897
URL: http://svn.reactos.org/svn/reactos?rev=46897&view=rev Log: [NOTEPAD] - Create a font even if no registry settings were loaded - Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl> See issue #4066 for more details.
Modified: trunk/reactos/base/applications/notepad/settings.c
Modified: trunk/reactos/base/applications/notepad/settings.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/s... ============================================================================== --- trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] Fri Apr 16 16:30:40 2010 @@ -147,15 +147,15 @@ if (dwPointSize != 0) Globals.lfFont.lfHeight = HeightFromPointSize(dwPointSize);
- hFont = CreateFontIndirect(&Globals.lfFont); - if (hFont) - { - if (Globals.hFont) - DeleteObject(Globals.hFont); - Globals.hFont = hFont; - } - RegCloseKey(hKey); + } + + hFont = CreateFontIndirect(&Globals.lfFont); + if (hFont) + { + if (Globals.hFont) + DeleteObject(Globals.hFont); + Globals.hFont = hFont; } }