]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos.
authorPo Lu <luangruo@yahoo.com>
Thu, 27 Jun 2024 13:42:19 +0000 (21:42 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 30 Jun 2024 21:01:56 +0000 (23:01 +0200)
(cherry picked from commit cbede3d43df99177cc6c2d63a24bbec9b19da451)

src/w32uniscribe.c

index 79c3d6ee11958e4b60e8a7b35d42e1f6c8e5c0da..471bdf544d8dd7d24bb888d7deda3330c85ccf23 100644 (file)
@@ -1540,11 +1540,12 @@ syms_of_w32uniscribe_for_pdumper (void)
 
   /* Don't register if Uniscribe is not available.  */
   HMODULE uniscribe;
-  if (!uniscribe)
-    return;
 
 #ifdef WINDOWSNT
   uniscribe = LoadLibrary ("usp10.dll");
+  if (!uniscribe)
+    return;
+
   pfnScriptItemize = (void *) get_proc_addr (uniscribe, "ScriptItemize");
   pfnScriptShape = (void *) get_proc_addr (uniscribe, "ScriptShape");
   pfnScriptPlace = (void *) get_proc_addr (uniscribe, "ScriptPlace");
@@ -1563,6 +1564,9 @@ syms_of_w32uniscribe_for_pdumper (void)
     }
 #else /* Cygwin */
   uniscribe = GetModuleHandle ("usp10.dll");
+  if (!uniscribe)
+    return;
+
   pfnScriptItemize = &ScriptItemize;
   pfnScriptShape = &ScriptShape;
   pfnScriptPlace = &ScriptPlace;