little bugfix
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 12 Dec 2003 22:57:26 +0000 (22:57 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 12 Dec 2003 22:57:26 +0000 (22:57 +0000)
svn path=/trunk/; revision=6982

reactos/subsys/win32k/objects/text.c

index c1b1fbf..a7b2704 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: text.c,v 1.58 2003/12/12 22:50:20 weiden Exp $ */
+/* $Id: text.c,v 1.59 2003/12/12 22:57:26 weiden Exp $ */
 
 
 #undef WIN32_LEAN_AND_MEAN
@@ -1384,7 +1384,6 @@ TextIntRealizeFont(HFONT FontHandle)
       }
       Entry = Entry->Flink;
     }
-    ExReleaseFastMutex(&FontListLock);
 
     if (NULL == TextObj->GDIFontHandle)
     {
@@ -1404,6 +1403,8 @@ TextIntRealizeFont(HFONT FontHandle)
       }
       
     }
+    
+    ExReleaseFastMutex(&FontListLock);
 
     ASSERT(! NT_SUCCESS(Status) || NULL != TextObj->GDIFontHandle);