mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-21 20:11:30 +00:00
Window: Solve Unicode issues in GUI (e.g. Chinese text not always displayed correctly) by using Unicode API for dialogs and window message handling.
This commit is contained in:
@@ -209,13 +209,13 @@ extern "C" BOOL ComServerMain ()
|
||||
return FALSE;
|
||||
|
||||
MSG msg;
|
||||
while (int r = GetMessage (&msg, NULL, 0, 0))
|
||||
while (int r = GetMessageW (&msg, NULL, 0, 0))
|
||||
{
|
||||
if (r == -1)
|
||||
return FALSE;
|
||||
|
||||
TranslateMessage (&msg);
|
||||
DispatchMessage (&msg);
|
||||
DispatchMessageW (&msg);
|
||||
|
||||
if (msg.message == WM_APP
|
||||
&& ObjectCount < 1
|
||||
|
||||
Reference in New Issue
Block a user