[ros-diffs] [cwittich] 42861: partial sync of oleaut32 to wine 1.1.28

cwittich at svn.reactos.org cwittich at svn.reactos.org
Sat Aug 22 19:29:39 CEST 2009


Author: cwittich
Date: Sat Aug 22 19:29:38 2009
New Revision: 42861

URL: http://svn.reactos.org/svn/reactos?rev=42861&view=rev
Log:
partial sync of oleaut32 to wine 1.1.28

Modified:
    trunk/reactos/dll/win32/oleaut32/typelib.c

Modified: trunk/reactos/dll/win32/oleaut32/typelib.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/oleaut32/typelib.c?rev=42861&r1=42860&r2=42861&view=diff
==============================================================================
--- trunk/reactos/dll/win32/oleaut32/typelib.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/oleaut32/typelib.c [iso-8859-1] Sat Aug 22 19:29:38 2009
@@ -3052,7 +3052,7 @@
     bytelen = *(const WORD*)ptr;
     if(bytelen == 0xffff) return 2;
     len = MultiByteToWideChar(CP_ACP, 0, ptr + 2, bytelen, NULL, 0);
-    *pBstr = SysAllocStringLen(NULL, len - 1);
+    *pBstr = SysAllocStringLen(NULL, len);
     if (*pBstr)
         len = MultiByteToWideChar(CP_ACP, 0, ptr + 2, bytelen, *pBstr, len);
     return bytelen + 2;
@@ -5874,6 +5874,12 @@
         *vt |= VT_ARRAY;
         hr = typedescvt_to_variantvt(tinfo, tdesc->u.lptdesc, vt);
         break;
+    case VT_INT:
+        *vt |= VT_I4;
+        break;
+    case VT_UINT:
+        *vt |= VT_UI4;
+        break;
     default:
         *vt |= tdesc->vt;
         break;




More information about the Ros-diffs mailing list