And adjust the return type of CtfImmHideToolbarWnd.
---
As with !7572, the Guild Wars 2 installer wants this (but only sometimes, which is why it wasn't included in that MR).
Testing shows that CtfImmRestoreToolbarWnd consumes one pointer-sized argument and (in my surely broken test calls) returns 0.
Examining the app, it calls CtfImmRestoreToolbarWnd with the return value of CtfImmHideToolbarWnd. That implies to me that the return of CtfImmHideToolbarWnd might be more interesting than a BOOL. I adjusted its return to a DWORD, both for that reason and because a BOOL implies that we know more about this function than we do. Let me know if you'd like me to split that into its own commit, or skip the change entirely.
From: Tim Clem tclem@codeweavers.com
And adjust the return type of CtfImmHideToolbarWnd. --- dlls/imm32/imm.c | 14 ++++++++++++-- dlls/imm32/imm32.spec | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index c282bfd925a..1d5b8cd8fa3 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -3346,9 +3346,19 @@ BOOL WINAPI CtfImmIsCiceroEnabled(void) /*********************************************************************** * CtfImmHideToolbarWnd (IMM32.@) */ -BOOL WINAPI CtfImmHideToolbarWnd(void) +DWORD WINAPI CtfImmHideToolbarWnd(void) { FIXME("(): stub\n"); SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; + return 0; +} + +/*********************************************************************** + * CtfImmRestoreToolbarWnd (IMM32.@) + */ +DWORD WINAPI CtfImmRestoreToolbarWnd(DWORD unknown) +{ + FIXME("%lx: stub\n", unknown); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; } diff --git a/dlls/imm32/imm32.spec b/dlls/imm32/imm32.spec index 27ce9f45f9f..641e8f6f1e8 100644 --- a/dlls/imm32/imm32.spec +++ b/dlls/imm32/imm32.spec @@ -15,7 +15,7 @@ @ stub CtfImmLastEnabledWndDestroy @ stub CtfImmLeaveCoInitCountSkipMode @ stub CtfImmNotify -@ stub CtfImmRestoreToolbarWnd +@ stdcall CtfImmRestoreToolbarWnd(long) @ stub CtfImmSetAppCompatFlags @ stub CtfImmSetCiceroStartInThread @ stub CtfImmSetDefaultRemoteKeyboardLayout
This merge request was approved by Rémi Bernon.