hhctrl.ocx: ensure that the topic within MSITStore url's begins with /

Vincent Povirk vincent at codeweavers.com
Thu Aug 6 11:15:05 CDT 2009


If a CHM file has a default topic something like index.html, we navigate to a url like mk:MSITStore:C:/helpfile.chm::index.html. This fails if index.html contains relative links (to something like contents.html), as UrlCombine does not form a sensible new url. We'd want mk:MSITStore:C:/helpfile.chm::contents.html, but we actually get mk:MSITStore:C:/helpfile.chm::index.html/contents.html.

UrlCombine on Windows does not create a usable url in this situation either.

The solution is to make sure we always have a url that UrlCombine can properly handle, something like mk:MSITStore:C:/helpfile.chm::/index.html.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090806/ab8c60e0/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-hhctrl.ocx-ensure-that-the-topic-within-MSITStore-u.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090806/ab8c60e0/attachment.txt>


More information about the wine-patches mailing list