usp10: Fix ScriptGetProperties so that first pointer can be NULL.
This commit is contained in:
parent
820141114e
commit
766530dfe8
|
@ -109,13 +109,16 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
|
||||||
*/
|
*/
|
||||||
HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts)
|
HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts)
|
||||||
{
|
{
|
||||||
TRACE("%p,%p\n",ppSp, piNumScripts);
|
TRACE("%p,%p\n", ppSp, piNumScripts);
|
||||||
|
|
||||||
/* Set up a sensible default and intialise pointers */
|
if (!ppSp && !piNumScripts) return E_INVALIDARG;
|
||||||
*piNumScripts = MAX_SCRIPTS;
|
|
||||||
*ppSp = Global_Script;
|
/* Set up a sensible default and intialise pointers */
|
||||||
TRACE("ppSp:%p, *ppSp:%p, **ppSp:%p, %d\n", ppSp, *ppSp, **ppSp,
|
if (piNumScripts) *piNumScripts = MAX_SCRIPTS;
|
||||||
*piNumScripts);
|
if (ppSp) *ppSp = Global_Script;
|
||||||
|
TRACE("ppSp:%p, *ppSp:%p, **ppSp:%p, %d\n",
|
||||||
|
ppSp, ppSp ? *ppSp : NULL, (ppSp && *ppSp) ? **ppSp : NULL,
|
||||||
|
piNumScripts ? *piNumScripts : -1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue