InternetCanonicalizeUrlA/W : Added cases for two more flags --- dlls/wininet/internet.c | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 3bfa62f..71dca8a 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -1493,7 +1493,17 @@ BOOL WINAPI InternetCanonicalizeUrlA(LPCSTR lpszUrl, LPSTR lpszBuffer, dwURLFlags |= URL_BROWSER_MODE; dwFlags &= ~ICU_BROWSER_MODE; } - if(dwFlags) + if(dwFlags & ICU_NO_META) + { + dwURLFlags |= URL_NO_META; + dwFlags &= ~ICU_NO_META; + } + if(dwFlags & ICU_ENCODE_SPACES_ONLY) + { + dwURLFlags |= URL_ESCAPE_SPACES_ONLY; + dwFlags &= ~ICU_ENCODE_SPACES_ONLY; + } + if(dwFlags) FIXME("Unhandled flags 0x%08x\n", dwFlags); TRACE("%s %p %p %08x\n", debugstr_a(lpszUrl), lpszBuffer, lpdwBufferLength, dwURLFlags); @@ -1537,6 +1547,16 @@ BOOL WINAPI InternetCanonicalizeUrlW(LPCWSTR lpszUrl, LPWSTR lpszBuffer, dwURLFlags |= URL_BROWSER_MODE; dwFlags &= ~ICU_BROWSER_MODE; } + if(dwFlags & ICU_NO_META) + { + dwURLFlags |= URL_NO_META; + dwFlags &= ~ICU_NO_META; + } + if(dwFlags & ICU_ENCODE_SPACES_ONLY) + { + dwURLFlags |= URL_ESCAPE_SPACES_ONLY; + dwFlags &= ~ICU_ENCODE_SPACES_ONLY; + } if(dwFlags) FIXME("Unhandled flags 0x%08x\n", dwFlags); TRACE("%s %p %p %08x\n", debugstr_w(lpszUrl), lpszBuffer, -- 1.4.4.2