ole32: Fix DefaultHandler_EnumAdvises

Robert Shearman rob at codeweavers.com
Fri Apr 7 05:18:05 CDT 2006


ChangeLog:
As per MSDN, if the object has no connections then
IOleObject::EnumAdvises should return a NULL enumerator and S_OK. This
is the case when This->oleAdviseHolder is NULL, so do this and avert a
potential NULL dereference of This->oleAdviseHolder. (Found by
Coverity.)

  dlls/ole32/defaulthandler.c |    5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9e09d4b4dbdb3fe5d5d48379cca81b04f71b6736.diff
Type: text/x-patch
Size: 615 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060407/3e3d49d3/9e09d4b4dbdb3fe5d5d48379cca81b04f71b6736.diff


More information about the wine-patches mailing list