Skip to content

Commit

Permalink
fix: 修复中文输入时报窗口注册失败的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimeNull committed Mar 27, 2024
1 parent bc674f0 commit 6f27d76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ private void EnsureWindowClassRegistered(IntPtr hInst)

ushort atom = RegisterClassExW(ref wcex);
int ec = Marshal.GetLastWin32Error();
if (atom == 0)
if (ec != 1410 && atom == 0)
{
throw new Exception($"Failed to register response message-only window class {ec}");
}
Expand Down

0 comments on commit 6f27d76

Please sign in to comment.