Rob Shearman : ole32: Don' t release pUnk in OleCreate if CoCreateInstance failed.
4 Jan
2007
4 Jan
'07
10:44 a.m.
Module: wine Branch: master Commit: b8035d2c70edc0456a4f9f53927cd13b8846afc7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8035d2c70edc0456a4f9f5392... Author: Rob Shearman <rob(a)codeweavers.com> Date: Wed Jan 3 10:31:08 2007 +0000 ole32: Don't release pUnk in OleCreate if CoCreateInstance failed. --- dlls/ole32/ole2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 249b75b..151957c 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2399,7 +2399,7 @@ HRESULT WINAPI OleCreate( } } - if (FAILED(hres)) + if (FAILED(hres) && pUnk) { IUnknown_Release(pUnk); pUnk = NULL;
6921
Age (days ago)
6921
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard