Skip to content

Commit 6f27d76

Browse files
committed
fix: 修复中文输入时报窗口注册失败的 bug
1 parent bc674f0 commit 6f27d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugins/CurvaLauncher.Plugins.Everything/EverythingSearchClient/MessageReceiverWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ private void EnsureWindowClassRegistered(IntPtr hInst)
448448

449449
ushort atom = RegisterClassExW(ref wcex);
450450
int ec = Marshal.GetLastWin32Error();
451-
if (atom == 0)
451+
if (ec != 1410 && atom == 0)
452452
{
453453
throw new Exception($"Failed to register response message-only window class {ec}");
454454
}

0 commit comments

Comments
 (0)