typelib patch 3
Ove Kaaven
ovek at arcticnet.no
Wed Oct 3 17:28:40 CDT 2001
Log:
Ove Kaaven <ovek at transgaming.com>
ITypeInfo::GetIDsOfNames needs to do case-insensitive string compares.
Index: dlls/oleaut32/typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.50
diff -u -r1.50 typelib.c
--- dlls/oleaut32/typelib.c 2001/10/03 18:42:54 1.50
+++ dlls/oleaut32/typelib.c 2001/10/03 20:59:42
@@ -3797,18 +3801,16 @@
TLBFuncDesc * pFDesc;
TLBVarDesc * pVDesc;
HRESULT ret=S_OK;
- UINT nNameLen = SysStringLen(*rgszNames);
-
+
TRACE("(%p) Name %s cNames %d\n", This, debugstr_w(*rgszNames),
cNames);
for(pFDesc=This->funclist; pFDesc; pFDesc=pFDesc->next) {
int i, j;
- if( !memcmp(*rgszNames, pFDesc->Name, nNameLen)) {
+ if(!lstrcmpiW(*rgszNames, pFDesc->Name)) {
if(cNames) *pMemId=pFDesc->funcdesc.memid;
for(i=1; i < cNames; i++){
- UINT nParamLen = SysStringLen(rgszNames[i]);
for(j=0; j<pFDesc->funcdesc.cParams; j++)
- if(memcmp(rgszNames[i],pFDesc->pParamDesc[j].Name, nParamLen))
+ if(!lstrcmpiW(rgszNames[i],pFDesc->pParamDesc[j].Name))
break;
if( j<pFDesc->funcdesc.cParams)
pMemId[i]=j;
@@ -3819,7 +3821,7 @@
}
}
for(pVDesc=This->varlist; pVDesc; pVDesc=pVDesc->next) {
- if( !memcmp(*rgszNames, pVDesc->Name, nNameLen)) {
+ if(!lstrcmpiW(*rgszNames, pVDesc->Name)) {
if(cNames) *pMemId=pVDesc->vardesc.memid;
return ret;
}
More information about the wine-patches
mailing list