shlwapi: Use an error code instead of -1 for signalling prefix not being found in URL_GuessScheme.

This commit is contained in:
Rob Shearman 2008-09-30 13:55:13 +01:00 committed by Alexandre Julliard
parent 739bdaeb86
commit 80b5b74f15
1 changed files with 2 additions and 2 deletions

View File

@ -1589,7 +1589,7 @@ static HRESULT URL_GuessScheme(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut)
index++;
}
RegCloseKey(newkey);
return -1;
return E_FAIL;
}
static HRESULT URL_ApplyDefault(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut)
@ -1652,7 +1652,7 @@ HRESULT WINAPI UrlApplySchemeW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut, DW
if (res1) {
/* no scheme in input, need to see if we need to guess */
if (dwFlags & URL_APPLY_GUESSSCHEME) {
if ((ret = URL_GuessScheme(pszIn, pszOut, pcchOut)) != -1)
if ((ret = URL_GuessScheme(pszIn, pszOut, pcchOut)) != E_FAIL)
return ret;
}
}