Fix SafeArrayCopy For NULL pvData

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

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 :

More information about the wine-patches mailing list