Commit 99af2f56 authored by Peter Schellenbach's avatar Peter Schellenbach Committed by Alexandre Julliard

oleaut32: Corrected registration flag inversion in RegisterActiveObject.

parent 7879b8e3
...@@ -471,6 +471,7 @@ HRESULT WINAPI RegisterActiveObject( ...@@ -471,6 +471,7 @@ HRESULT WINAPI RegisterActiveObject(
HRESULT ret; HRESULT ret;
LPRUNNINGOBJECTTABLE runobtable; LPRUNNINGOBJECTTABLE runobtable;
LPMONIKER moniker; LPMONIKER moniker;
DWORD rot_flags = ROTFLAGS_REGISTRATIONKEEPSALIVE; /* default registration is strong */
StringFromGUID2(rcid,guidbuf,39); StringFromGUID2(rcid,guidbuf,39);
ret = CreateItemMoniker(pdelimiter,guidbuf,&moniker); ret = CreateItemMoniker(pdelimiter,guidbuf,&moniker);
...@@ -481,7 +482,9 @@ HRESULT WINAPI RegisterActiveObject( ...@@ -481,7 +482,9 @@ HRESULT WINAPI RegisterActiveObject(
IMoniker_Release(moniker); IMoniker_Release(moniker);
return ret; return ret;
} }
ret = IRunningObjectTable_Register(runobtable,dwFlags,punk,moniker,pdwRegister); if(dwFlags == ACTIVEOBJECT_WEAK)
rot_flags = 0;
ret = IRunningObjectTable_Register(runobtable,rot_flags,punk,moniker,pdwRegister);
IRunningObjectTable_Release(runobtable); IRunningObjectTable_Release(runobtable);
IMoniker_Release(moniker); IMoniker_Release(moniker);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment