implement GSC_RESULTCLAUSE
Aric Stewart
aric at codeweavers.com
Fri Feb 23 00:21:59 CST 2007
Beginning implementation of GSC_RESULTCLAUSE
---
dlls/imm32/imm.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index c63b300..2500075 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -563,6 +563,21 @@ LONG WINAPI ImmGetCompositionStringA(
}
rc = sizeof(DWORD)*2;
}
+ else if (dwIndex == GCS_RESULTCLAUSE)
+ {
+ TRACE("GSC_RESULTCLAUSE %p %i\n", data->ResultString, data->dwResultStringSize);
+
+ rc = WideCharToMultiByte(CP_ACP, 0, (LPWSTR)data->ResultString,
+ data->dwResultStringSize/ sizeof(WCHAR), NULL,
+ 0, NULL, NULL);
+
+ if (dwBufLen >= sizeof(DWORD)*2)
+ {
+ ((LPDWORD)lpBuf)[0] = 0;
+ ((LPDWORD)lpBuf)[1] = rc;
+ }
+ rc = sizeof(DWORD)*2;
+ }
else
{
FIXME("Unhandled index 0x%x\n",dwIndex);
More information about the wine-patches
mailing list