Hans Leidekker : usp10: Improve stubs.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 9 13:52:43 CST 2006
Module: wine
Branch: refs/heads/master
Commit: c0a223be60e3d4f64b29f5ba0257737bc4e2663d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c0a223be60e3d4f64b29f5ba0257737bc4e2663d
Author: Hans Leidekker <hans at it.vu.nl>
Date: Mon Jan 9 17:16:57 2006 +0100
usp10: Improve stubs.
Improve stubs for ScriptGetProperties and ScriptItemize.
Add stub for ScriptFreeCache.
---
dlls/usp10/usp10.c | 23 +++++++++++++++++++++--
dlls/usp10/usp10.spec | 2 +-
2 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 57c0f1d..38e1fc6 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -52,13 +52,27 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL,
}
/***********************************************************************
+ * ScriptFreeCache (USP10.@)
+ *
+ */
+HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
+{
+ FIXME("%p\n", psc);
+
+ if (psc) *psc = NULL;
+ return 0;
+}
+
+/***********************************************************************
* ScriptGetProperties (USP10.@)
*
*/
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
{
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;
}
/***********************************************************************
diff --git a/dlls/usp10/usp10.spec b/dlls/usp10/usp10.spec
index d8f77f0..c975cc0 100644
--- a/dlls/usp10/usp10.spec
+++ b/dlls/usp10/usp10.spec
@@ -4,7 +4,7 @@
@ stub ScriptBreak
@ stub ScriptCPtoX
@ stub ScriptCacheGetHeight
-@ stub ScriptFreeCache
+@ stdcall ScriptFreeCache(ptr)
@ stub ScriptGetCMap
@ stdcall ScriptGetFontProperties(long ptr ptr)
@ stub ScriptGetGlyphABCWidth
More information about the wine-cvs
mailing list