Commit 3fa550b5 authored by Gregor Schneider's avatar Gregor Schneider Committed by Alexandre Julliard

mlang: Change EnumRfc1766_create return values to error codes.

parent bf64bbd1
......@@ -2501,7 +2501,7 @@ static HRESULT EnumRfc1766_create(LANGID LangId, IEnumRfc1766 **ppEnum)
if (!data.info)
{
HeapFree(GetProcessHeap(), 0, rfc);
return S_FALSE;
return E_OUTOFMEMORY;
}
TlsSetValue(MLANG_tls_index, &data);
......@@ -2514,7 +2514,7 @@ static HRESULT EnumRfc1766_create(LANGID LangId, IEnumRfc1766 **ppEnum)
{
HeapFree(GetProcessHeap(), 0, data.info);
HeapFree(GetProcessHeap(), 0, rfc);
return FALSE;
return E_FAIL;
}
rfc->info = data.info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment