[PATCH 20/21] [WinHelp]: fix the link kind (and color) of the 0xEA-OxEF family

Eric Pouech eric.pouech at orange.fr
Tue Apr 22 15:01:27 CDT 2008




A+
---

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


diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c
index b9f799b..c05475b 100644
--- a/programs/winhelp/hlpfile.c
+++ b/programs/winhelp/hlpfile.c
@@ -1193,9 +1193,9 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, BYTE *buf, BYTE* end)
                         break;
                     }
                     HLPFILE_FreeLink(attributes.link);
-                    attributes.link = HLPFILE_AllocLink((*format & 4) ? hlp_link_link : hlp_link_popup,
+                    attributes.link = HLPFILE_AllocLink((*format & 1) ? hlp_link_link : hlp_link_popup,
                                                         ptr, GET_UINT(format, 4),
-                                                        !(*format & 1), wnd);
+                                                        !(*format & 4), wnd);
                 }
                 format += 3 + GET_USHORT(format, 1);
                 break;





More information about the wine-patches mailing list