shlwapi: Fixes for UrlIsW and UrlIsA (REPOST, with tests)

Troy Rollo wine at troy.rollo.name
Sun Mar 20 01:02:09 CST 2005


Testing under Windows shows that UrlIsW and UrlIsA should:

 - ignore everything after the ":" when testing for URLIS_OPAQUE.
   This option tests the structure of the scheme, not the structure of
   the URL.

 - only test for "file:" at the start of the URL for URLIS_FILEURL.
   it does not matter whether this is followed by "//" (or anything else).

This patch includes both the corrections and tests for this behaviour.

ChangeLog:
 Corrections to UrlIsW and UrlIsA.
 URL_IS_OPAQUE results depend only on the scheme, not on the URL.
 URL_IS_FILEURL also only depends on the scheme ("file:").
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shlwapi.diff
Type: text/x-diff
Size: 5532 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050320/01c6093c/shlwapi.bin


More information about the wine-patches mailing list