mirror of https://github.com/FreeRDP/FreeRDP
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:
parent
b93a25a9af
commit
6823cb4a86
|
@ -811,13 +811,13 @@ HRESULT PathCchConvertStyleA(PSTR pszPath, size_t cchPath, unsigned long dwFlags
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Unexpected error */
|
/* Unexpected error */
|
||||||
return S_FALSE;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Gangnam style? */
|
/* Gangnam style? */
|
||||||
return S_FALSE;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -868,13 +868,13 @@ HRESULT PathCchConvertStyleW(PWSTR pszPath, size_t cchPath, unsigned long dwFlag
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Unexpected error */
|
/* Unexpected error */
|
||||||
return S_FALSE;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Gangnam style? */
|
/* Gangnam style? */
|
||||||
return S_FALSE;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue