From: Po Lu Date: Thu, 27 Jun 2024 13:42:19 +0000 (+0800) Subject: * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e60b94025f928a0d545a793a76ba7af7fba2c060;p=emacs.git * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos. (cherry picked from commit cbede3d43df99177cc6c2d63a24bbec9b19da451) --- 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;