[COMDLG32][REGEDIT] Fix display problems (CORE-16890) (#2638)

This commit is contained in:
Kyle Katarn 2020-04-25 10:41:01 +02:00 committed by GitHub
parent 07e80dead4
commit 9c682e4c16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1915,7 +1915,11 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
/* change Open to Save */
if (fodInfos->DlgInfos.dwDlgProp & FODPROP_SAVEDLG)
{
#ifdef __REACTOS__
WCHAR buf[24];
#else
WCHAR buf[16];
#endif
LoadStringW(COMDLG32_hInstance, IDS_SAVE_BUTTON, buf, ARRAY_SIZE(buf));
SetDlgItemTextW(hwnd, IDOK, buf);
LoadStringW(COMDLG32_hInstance, IDS_SAVE_IN, buf, ARRAY_SIZE(buf));