Fix SafeArrayCopy For NULL pvData

Robert Shearman rob at codeweavers.com
Fri Dec 9 17:09:30 CST 2005


ChangeLog:
It is allowed to copy a SAFEARRAY with a NULL pvData, as long as
cbElements is non-zero. Add a test for this and fix the safe array code.

  dlls/oleaut32/safearray.c       |   10 +++++++++-
  dlls/oleaut32/tests/safearray.c |   15 ++++++++++++++-
  2 files changed, 23 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: d43968c4a50ca8f68c0a95a774d3627a6cdf5168.diff
Type: text/x-patch
Size: 2015 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051209/7b0c188f/d43968c4a50ca8f68c0a95a774d3627a6cdf5168.diff


More information about the wine-patches mailing list