Module: wine Branch: refs/heads/master Commit: cca69647a3ce7ac471431c22c17570519f213a94 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=cca69647a3ce7ac471431c22...
Author: Robert Shearman rob@codeweavers.com Date: Fri Apr 7 11:17:43 2006 +0100
oleaut32: Fix typo in LPSAFEARRAY_Unmarshal.
Fix typo in LPSAFEARRAY_Unmarshal where the check for the failure of the SafeArrayCreateEx call was missing a dereference operator (found by Coverity).
---
dlls/oleaut32/usrmarshal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c index 242c3b1..961304f 100644 --- a/dlls/oleaut32/usrmarshal.c +++ b/dlls/oleaut32/usrmarshal.c @@ -852,7 +852,7 @@ unsigned char * WINAPI LPSAFEARRAY_UserU Buffer += sizeof(wiresab[0]) * wiresa->cDims;
*ppsa = SafeArrayCreateEx(vt, wiresa->cDims, wiresab, NULL); - if (!ppsa) + if (!*ppsa) RpcRaiseException(E_OUTOFMEMORY);
/* be careful about which flags we set since they could be a security