ole32: Fix DefaultHandler_EnumAdvises.
commit582e2f1ff84f1069a10f031e53236285d4f6c310
authorRobert Shearman <rob@codeweavers.com>
Fri, 7 Apr 2006 10:18:05 +0000 (7 11:18 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 7 Apr 2006 11:09:36 +0000 (7 13:09 +0200)
tree7ed227ab9c920fc7966929559eb9c1dfc2c5481a
parentcca69647a3ce7ac471431c22c17570519f213a94
ole32: Fix DefaultHandler_EnumAdvises.

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