Skip to content

Commit

Permalink
GUI: Don't use MB_PRECOMPOSED due to failing on 15063
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Jan 29, 2025
1 parent 1edb989 commit 80b5d73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ExplorerPatcher/updates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ BOOL IsUpdateAvailableHelper(
{
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
jsonStr.c_str(),
-1,
pszJsonStr,
Expand Down
20 changes: 10 additions & 10 deletions ep_gui/GUI.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
ZeroMemory(section, MAX_LINE_LENGTH * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
line[1] == '-' ? line + 2 : line + 1,
numChRd - (line[1] == '-' ? 5 : 4),
section,
Expand Down Expand Up @@ -1279,7 +1279,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
ZeroMemory(text, (MAX_LINE_LENGTH + 3) * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
line + 3,
numChRd - 3,
text,
Expand Down Expand Up @@ -1362,7 +1362,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
ZeroMemory(text, (MAX_LINE_LENGTH + 3) * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
line + 3,
numChRd - 3,
text,
Expand Down Expand Up @@ -1912,7 +1912,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
ZeroMemory(wszName, MAX_PATH * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
line2 + 2,
numChRd2 - 2,
wszName,
Expand Down Expand Up @@ -2190,7 +2190,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
ZeroMemory(wszName, MAX_PATH * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
line2 + 2,
numChRd2 - 2,
wszName,
Expand Down Expand Up @@ -2339,7 +2339,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
text[2] = L' ';
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
!strncmp(line, ";c ", 3) || !strncmp(line, ";z ", 3) ? strchr(line + 3, ' ') + 1 : line + 3,
numChRd - 3,
text + 3,
Expand Down Expand Up @@ -2399,7 +2399,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
wchar_t* miText = malloc(MAX_PATH * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
ln,
MAX_PATH,
miText,
Expand Down Expand Up @@ -2442,7 +2442,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
if (p) *p = 0;
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
l + 1,
numChRd - 1,
wszPrompt,
Expand All @@ -2457,7 +2457,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
if (p) *p = 0;
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
l + 1,
numChRd - 1,
wszFallbackDefault,
Expand Down Expand Up @@ -2486,7 +2486,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
ZeroMemory(name, MAX_LINE_LENGTH * sizeof(wchar_t));
MultiByteToWideChar(
CP_UTF8,
MB_PRECOMPOSED,
0,
line[0] == '"' ? line + 1 : line,
numChRd,
name,
Expand Down

0 comments on commit 80b5d73

Please sign in to comment.