https://git.reactos.org/?p=reactos.git;a=commitdiff;h=40131fd1ca00ae69165bc…
commit 40131fd1ca00ae69165bc3220fea7de26a1b50dc
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Dec 29 21:16:20 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Dec 29 21:16:20 2023 +0900
[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;