[IMM32][IMM32_WINETEST] Re-implement ImmSetCompositionStringA/W (#4040)

- Modify ImmSetCompositionStringA and ImmSetCompositionStringW prototypes (removing const of two arguments).
- Add Imm32OpenICAndCS helper function.
- Implement Imm32SetCompositionStringAW function.
- Modify imm32_winetest (due to removal of const).
CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2021-10-17 19:32:48 +09:00 committed by GitHub
parent e98684ed8b
commit aa8fc872a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 372 additions and 16 deletions

View file

@ -293,7 +293,11 @@ static void cleanup(void) {
}
static void test_ImmNotifyIME(void) {
#ifdef __REACTOS__
static char string[] = "wine";
#else
static const char string[] = "wine";
#endif
char resstr[16] = "";
HIMC imc;
BOOL ret;
@ -422,7 +426,11 @@ static LRESULT WINAPI test_ime_wnd_proc(HWND hWnd, UINT msg, WPARAM wParam, LPAR
static void test_ImmGetCompositionString(void)
{
HIMC imc;
#ifdef __REACTOS__
static WCHAR string[] = {'w','i','n','e',0x65e5,0x672c,0x8a9e};
#else
static const WCHAR string[] = {'w','i','n','e',0x65e5,0x672c,0x8a9e};
#endif
char cstring[20];
WCHAR wstring[20];
LONG len;