usp10: Improve stubs.

Improve stubs for ScriptGetProperties and ScriptItemize.
Add stub for ScriptFreeCache.
This commit is contained in:
Hans Leidekker 2006-01-09 17:16:57 +01:00 committed by Alexandre Julliard
parent 3066397bab
commit c0a223be60
2 changed files with 22 additions and 3 deletions

View File

@ -51,6 +51,18 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
return TRUE;
}
/***********************************************************************
* ScriptFreeCache (USP10.@)
*
*/
HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
{
FIXME("%p\n", psc);
if (psc) *psc = NULL;
return 0;
}
/***********************************************************************
* ScriptGetProperties (USP10.@)
*
@ -58,7 +70,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts)
{
FIXME("%p,%p\n",ppSp,piNumScripts);
return E_NOTIMPL;
if (piNumScripts) *piNumScripts = 0;
return 0;
}
/***********************************************************************
@ -111,7 +125,12 @@ HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars, int cInChars, int cMaxItem
{
FIXME("%s,%d,%d,%p,%p,%p,%p\n", debugstr_w(pwcInChars), cInChars, cMaxItems,
psControl, psState, pItems, pcItems);
return E_INVALIDARG;
if (!pwcInChars || !cInChars || !pItems || cMaxItems < 2)
return E_INVALIDARG;
*pcItems = 0;
return 0;
}
/***********************************************************************

View File

@ -4,7 +4,7 @@
@ stub ScriptBreak
@ stub ScriptCPtoX
@ stub ScriptCacheGetHeight
@ stub ScriptFreeCache
@ stdcall ScriptFreeCache(ptr)
@ stub ScriptGetCMap
@ stdcall ScriptGetFontProperties(long ptr ptr)
@ stub ScriptGetGlyphABCWidth