Revert the sync.
[reactos.git] / dll / win32 / shlwapi / url.c
index cd83b45..958a842 100644 (file)
@@ -278,8 +278,7 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
 {
     HRESULT hr = S_OK;
     DWORD EscapeFlags;
-    LPCWSTR wk1, root;
-    LPWSTR lpszUrlCpy, wk2, mp, mp2;
+    LPWSTR lpszUrlCpy, wk1, wk2, mp, mp2, root;
     INT state;
     DWORD nByteLen, nLen, nWkLen;
     WCHAR slash = '/';
@@ -323,7 +322,7 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
      *         6   have location (found /) save root location
      */
 
-    wk1 = pszUrl;
+    wk1 = (LPWSTR)pszUrl;
     wk2 = lpszUrlCpy;
     state = 0;
 
@@ -663,7 +662,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
             }
         }
 
-        /* If there is a '#' and the characters immediately preceding it are
+        /* If there is a '#' and the characters immediately preceeding it are
          * ".htm[l]", then begin looking for the last leaf starting from
          * the '#'. Otherwise the '#' is not meaningful and just start
          * looking from the end. */
@@ -1719,9 +1718,6 @@ BOOL WINAPI UrlIsA(LPCSTR pszUrl, URLIS Urlis)
 
     TRACE("(%s %d)\n", debugstr_a(pszUrl), Urlis);
 
-    if(!pszUrl)
-        return FALSE;
-
     switch (Urlis) {
 
     case URLIS_OPAQUE:
@@ -1772,9 +1768,6 @@ BOOL WINAPI UrlIsW(LPCWSTR pszUrl, URLIS Urlis)
 
     TRACE("(%s %d)\n", debugstr_w(pszUrl), Urlis);
 
-    if(!pszUrl)
-        return FALSE;
-
     switch (Urlis) {
 
     case URLIS_OPAQUE: