[PATCH 06/21] [WinHelp]: fix window caption index in |SYSTEM
Eric Pouech
eric.pouech at orange.fr
Tue Apr 22 15:00:03 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 7e6a0f1..656f73a 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-patches
mailing list