[win] online-installer: fix MessageBox RTL

This commit is contained in:
SimplestStudio
2025-04-22 15:44:57 +03:00
parent 9006935a60
commit 3a42a9438d

View File

@ -118,7 +118,11 @@ namespace NS_Utils
str += _T(" ") + GetLastErrorAsString();
wstring caption(_T(" "));
caption.append(_TR(CAPTION));
MessageBox(NULL, str.c_str(), caption.c_str(), MB_ICONERROR | MB_SERVICE_NOTIFICATION_NT3X | MB_SETFOREGROUND);
LCID lcid = MAKELCID(GetUserDefaultUILanguage(), SORT_DEFAULT);
UINT flags = MB_ICONERROR | MB_SERVICE_NOTIFICATION_NT3X | MB_SETFOREGROUND;
if (IsRtlLanguage(lcid))
flags |= MB_RTLREADING;
MessageBox(NULL, str.c_str(), caption.c_str(), flags);
}
int ShowTaskDialog(HWND parent, const wstring &msg, PCWSTR icon)