From e60b94025f928a0d545a793a76ba7af7fba2c060 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 27 Jun 2024 21:42:19 +0800 Subject: [PATCH] * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos. (cherry picked from commit cbede3d43df99177cc6c2d63a24bbec9b19da451) --- src/w32uniscribe.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 79c3d6ee119..471bdf544d8 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c @@ -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; -- 2.39.2