mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06: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:
@@ -154,13 +154,13 @@ extern "C" BOOL ComServerFormat ()
|
||||
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