ByeongSik Jeon : imm32: Updated implementation of the ImmEnumRegisterWord{A|W}.

Alexandre Julliard julliard at winehq.org
Fri May 2 07:06:33 CDT 2008


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

Author: ByeongSik Jeon <bsjeon at hanmail.net>
Date:   Fri May  2 12:50:46 2008 +0900

imm32: Updated implementation of the ImmEnumRegisterWord{A|W}.

---

 dlls/imm32/imm.c |   27 +++++++++++++++++++++------
 1 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 2247cf4..31842a6 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -604,9 +604,17 @@ UINT WINAPI ImmEnumRegisterWordA(
                 (LPCWSTR)lpszReading, dwStyle, (LPCWSTR)lpszRegister, lpData);
         else
         {
-            FIXME("A procedure called with W ime back end\n");
-            SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-            return 0;
+            LPWSTR lpszwReading = strdupAtoW(lpszReading);
+            LPWSTR lpszwRegister = strdupAtoW(lpszRegister);
+            BOOL rc;
+
+            rc = immHkl->pImeEnumRegisterWord((REGISTERWORDENUMPROCW)lpfnEnumProc,
+                                              lpszwReading, dwStyle, lpszwRegister,
+                                              lpData);
+
+            HeapFree(GetProcessHeap(),0,lpszwReading);
+            HeapFree(GetProcessHeap(),0,lpszwRegister);
+            return rc;
         }
     }
     else
@@ -631,9 +639,16 @@ UINT WINAPI ImmEnumRegisterWordW(
                                             lpszRegister, lpData);
         else
         {
-            FIXME("W procedure called with A ime back end\n");
-            SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-            return 0;
+            LPSTR lpszaReading = strdupWtoA(lpszReading);
+            LPSTR lpszaRegister = strdupWtoA(lpszRegister);
+            BOOL rc;
+
+            rc = immHkl->pImeEnumRegisterWord(lpfnEnumProc, (LPCWSTR)lpszaReading,
+                                              dwStyle, (LPCWSTR)lpszaRegister, lpData);
+
+            HeapFree(GetProcessHeap(),0,lpszaReading);
+            HeapFree(GetProcessHeap(),0,lpszaRegister);
+            return rc;
         }
     }
     else




More information about the wine-cvs mailing list