mlang: Change EnumRfc1766_create return values to error codes.

This commit is contained in:
Gregor Schneider 2009-12-13 17:53:15 +01:00 committed by Alexandre Julliard
parent bf64bbd1fb
commit 3fa550b532
1 changed files with 2 additions and 2 deletions

View File

@ -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;