From 40131fd1ca00ae69165bc3220fea7de26a1b50dc Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Fri, 29 Dec 2023 21:16:20 +0900 Subject: [PATCH] [WINHLP32] Don't show file path in title (#6250) Based on KRosUser's winhlp.patch. This PR will supersede #5401. JIRA issue: CORE-18679 Just copy help file title. --- base/applications/winhlp32/winhelp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/applications/winhlp32/winhelp.c b/base/applications/winhlp32/winhelp.c index a4bfbd6e292..e0749480211 100644 --- a/base/applications/winhlp32/winhelp.c +++ b/base/applications/winhlp32/winhelp.c @@ -274,12 +274,16 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name) strcpy(mwi.type, "primary"); strcpy(mwi.name, "main"); if (hlpfile && hlpfile->lpszTitle[0]) +#ifdef __REACTOS__ + snprintf(mwi.caption, sizeof(mwi.caption), "%s", hlpfile->lpszTitle); +#else { char tmp[128]; LoadStringA(Globals.hInstance, STID_WINE_HELP, tmp, sizeof(tmp)); snprintf(mwi.caption, sizeof(mwi.caption), "%s %s - %s", hlpfile->lpszTitle, tmp, hlpfile->lpszPath); } +#endif else LoadStringA(Globals.hInstance, STID_WINE_HELP, mwi.caption, sizeof(mwi.caption)); mwi.origin.x = mwi.origin.y = mwi.size.cx = mwi.size.cy = CW_USEDEFAULT;