Return CLASS_E_NOAGGREGATION if pUnkOuter is non-null.

This commit is contained in:
Mike McCormack 2004-09-15 18:03:02 +00:00 committed by Alexandre Julliard
parent d80eb97b29
commit 79418b45f0
1 changed files with 3 additions and 0 deletions

View File

@ -1911,6 +1911,9 @@ static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj)
TRACE("Creating MultiLanguage object\n");
if( pUnkOuter )
return CLASS_E_NOAGGREGATION;
mlang = HeapAlloc( GetProcessHeap(), 0, sizeof (MLang_impl) );
mlang->vtbl_IMLangFontLink = &IMLangFontLink_vtbl;
mlang->vtbl_IMultiLanguage = &IMultiLanguage_vtbl;