Oleaut32 BSTR 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Fix a buglet I introduced with the "Oleaut32 BSTR" patch.

License: X11

Cheers,
Jon

ChangeLog:

  Jon Griffiths <jon_p_griffiths@yahoo.com>

  +dlls/oleaut32/oleaut.c
   Don't copy too much data in SysAllocStringByteLen().

--- wine-develop-old/dlls/oleaut32/oleaut.c	Thu Mar  6 15:44:38 2003
+++ wine-develop/dlls/oleaut32/oleaut.c	Thu Mar 13 21:32:51 2003
@@ -344,7 +348,7 @@
     {
       bstr->dwLen = len;
       if (oleStr && len)
-        memcpy(bstr->szString, oleStr, len * sizeof(WCHAR));
+        memcpy(bstr->szString, oleStr, len);
       /* Set the (possibly unaligned) word at the the end to NUL */
       ((BYTE*)bstr->szString)[len] = '\0';
       ((BYTE*)bstr->szString)[len + 1] = '\0';

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux