OLE: Fix SafeArrayCopy for NULL pvData.
commit9f1c6bf6bce0c2be5dcb236b5ff7a1daded2892d
authorRobert Shearman <rob@codeweavers.com>
Mon, 12 Dec 2005 10:52:51 +0000 (12 11:52 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 12 Dec 2005 10:52:51 +0000 (12 11:52 +0100)
tree30698b019d6d8384278a2361b891e51f20f983c3
parent6c3e1f9adfe687184b4eb5e7890a57399d8b3c9e
OLE: Fix SafeArrayCopy for NULL pvData.
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
dlls/oleaut32/tests/safearray.c