From 7c9918338a21a70b1eac3fdd14fb7a55470a211a Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 16 Feb 2006 12:08:48 +0100 Subject: [PATCH] shlwapi: Fix parameter check for UrlUnescapeA. NULL pszUnescaped is okay if URL_UNESCAPE_INPLACE is set. Add a corresponding test for UrlUnescape{A,W}. --- dlls/shlwapi/tests/path.c | 8 ++++++++ dlls/shlwapi/url.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c index 6800da2d54c..aa0a519a6e5 100644 --- a/dlls/shlwapi/tests/path.c +++ b/dlls/shlwapi/tests/path.c @@ -585,6 +585,9 @@ static void test_UrlUnescape(void) WCHAR *urlW, *expected_urlW; DWORD dwEscaped; size_t i; + static char inplace[] = "file:///C:/Program%20Files"; + static WCHAR inplaceW[] = {'f','i','l','e',':','/','/','/','C',':','/', + 'P','r','o','g','r','a','m','%','2','0','F','i','l','e','s',0}; for(i=0; i