https://bugzilla.novell.com/show_bug.cgi?id=339530#c1


Sebastien Pouliot <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
            Summary|BSTR convertion doesn't roundtrip               |[PATCH] 
BSTR convertion doesn't roundtrip




--- Comment #1 from Sebastien Pouliot <[EMAIL PROTECTED]>  2007-11-06 09:41:19 
MST ---
Index: mono/metadata/marshal.c
===================================================================
--- mono/metadata/marshal.c     (revision 88980)
+++ mono/metadata/marshal.c     (working copy)
@@ -1130,7 +1130,7 @@
                return NULL;
        return mono_string_new_utf16 (mono_domain_get (), bstr, SysStringLen
(bstr));
 #else
-       return mono_string_new_utf16 (mono_domain_get (), bstr, *(guint32
*)((char *)bstr - 4));
+       return mono_string_new_utf16 (mono_domain_get (), bstr, *(guint32
*)((char *)bstr - 4) / 2);
 #endif
 }


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to