winpr/path: PathCchConvertStyle used S_FALSE

Use E_FAIL instead of S_FALSE which was used to indicate errors
although it is a HRESULT success code.
This commit is contained in:
Norbert Federa 2015-06-08 14:03:32 +02:00
parent b93a25a9af
commit 6823cb4a86
1 changed files with 4 additions and 4 deletions

View File

@ -811,13 +811,13 @@ HRESULT PathCchConvertStyleA(PSTR pszPath, size_t cchPath, unsigned long dwFlags
else
{
/* Unexpected error */
return S_FALSE;
return E_FAIL;
}
}
else
{
/* Gangnam style? */
return S_FALSE;
return E_FAIL;
}
return S_OK;
@ -868,13 +868,13 @@ HRESULT PathCchConvertStyleW(PWSTR pszPath, size_t cchPath, unsigned long dwFlag
else
{
/* Unexpected error */
return S_FALSE;
return E_FAIL;
}
}
else
{
/* Gangnam style? */
return S_FALSE;
return E_FAIL;
}
return S_OK;