forked from ValveSoftware/Proton
-
-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patches: add workaround to fix world of warships login hang
- Loading branch information
1 parent
fd75157
commit 4e0e1ff
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
patches/game-patches/world-of-warships-login-hang-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/dlls/imm32/ime.c b/dlls/imm32/ime.c | ||
index 38a2a070117..424b286d0b5 100644 | ||
--- a/dlls/imm32/ime.c | ||
+++ b/dlls/imm32/ime.c | ||
@@ -701,6 +701,13 @@ BOOL WINAPI NotifyIME( HIMC himc, DWORD action, DWORD index, DWORD value ) | ||
} | ||
case CPS_CANCEL: | ||
input_context_set_comp_str( ctx, NULL, 0 ); | ||
+ const char *sgi = getenv("SteamGameId"); | ||
+ | ||
+ if ((!sgi) | (sgi && !strcmp(sgi, "552990"))) { | ||
+ ImmSetOpenStatus( himc, FALSE ); | ||
+ break; | ||
+ }; | ||
+ | ||
if ((msg = ime_set_composition_status( himc, FALSE ))) ime_send_message( himc, msg, 0, 0 ); | ||
NtUserNotifyIMEStatus( ctx->hWnd, FALSE ); | ||
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters