Alexandre Julliard : imm32: Remove stray semicolon. Don' t try to load an invalid file.

Alexandre Julliard julliard at winehq.org
Tue Apr 1 16:44:13 CDT 2008


Module: wine
Branch: master
Commit: 01d167be7c863c41e51deeace17ce7df044a9809
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=01d167be7c863c41e51deeace17ce7df044a9809

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Apr  1 23:17:21 2008 +0200

imm32: Remove stray semicolon. Don't try to load an invalid file.

---

 dlls/imm32/imm.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 9173d1b..866c3e3 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -139,8 +139,7 @@ static ImmHkl *IMM_GetImmHkl(HKL hkl)
     ptr = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(ImmHkl));
 
     ptr->hkl = hkl;
-    ImmGetIMEFileNameW(hkl, filename, MAX_PATH);
-    ptr->hIME = LoadLibraryW(filename);
+    if (ImmGetIMEFileNameW(hkl, filename, MAX_PATH)) ptr->hIME = LoadLibraryW(filename);
     if (ptr->hIME)
     {
         LOAD_FUNCPTR(ImeInquire);
@@ -179,7 +178,7 @@ static void IMM_FreeAllImmHkl(void)
 {
     ImmHkl *ptr,*cursor2;
 
-    LIST_FOR_EACH_ENTRY_SAFE(ptr, cursor2, &ImmHklList, ImmHkl, entry);
+    LIST_FOR_EACH_ENTRY_SAFE(ptr, cursor2, &ImmHklList, ImmHkl, entry)
     {
         list_remove(&ptr->entry);
         if (ptr->hIME)




More information about the wine-cvs mailing list