[Mono-bugs] [Bug 339530] [PATCH] BSTR convertion doesn't roundtrip

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 6 11:41:20 EST 2007


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


Sebastien Pouliot <spouliot at novell.com> changed:

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




--- Comment #1 from Sebastien Pouliot <spouliot at novell.com>  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.


More information about the mono-bugs mailing list