[PATCH 20/45] [WinHelp]: fix window caption index in |SYSTEM

Eric Pouech eric.pouech at orange.fr
Sun Mar 23 04:19:20 CDT 2008




A+
---

 programs/winhelp/hlpfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c
index 194fed0..f5ac241 100644
--- a/programs/winhelp/hlpfile.c
+++ b/programs/winhelp/hlpfile.c
@@ -1616,7 +1616,7 @@ static BOOL HLPFILE_SystemCommands(HLPFILE* hlpfile)
                 else wi->type[0] = '\0';
                 if (flags & 0x0002) strcpy(wi->name, &str[12]);
                 else wi->name[0] = '\0';
-                if (flags & 0x0004) strcpy(wi->caption, &str[23]);
+                if (flags & 0x0004) strcpy(wi->caption, &str[21]);
                 else lstrcpynA(wi->caption, hlpfile->lpszTitle, sizeof(wi->caption));
                 wi->origin.x = (flags & 0x0008) ? GET_USHORT(ptr, 76) : CW_USEDEFAULT;
                 wi->origin.y = (flags & 0x0010) ? GET_USHORT(ptr, 78) : CW_USEDEFAULT;





More information about the wine-patches mailing list