Eric Pouech : winhelp: Fix window caption index in |SYSTEM.

Alexandre Julliard julliard at winehq.org
Wed Apr 23 07:59:29 CDT 2008


Module: wine
Branch: master
Commit: e0032f0ceb8cc6bb86e8d4c0cd245505f877ebf0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e0032f0ceb8cc6bb86e8d4c0cd245505f877ebf0

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Tue Apr 22 22:00:03 2008 +0200

winhelp: Fix window caption index in |SYSTEM.

---

 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 2bbc68a..4424319 100644
--- a/programs/winhelp/hlpfile.c
+++ b/programs/winhelp/hlpfile.c
@@ -1549,7 +1549,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-cvs mailing list