Commit cd6e41dd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Use real object CLSID when creating instance from context info.

parent 647817b0
...@@ -2873,12 +2873,14 @@ HRESULT WINAPI CoGetClassObject( ...@@ -2873,12 +2873,14 @@ HRESULT WINAPI CoGetClassObject(
ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION, ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION,
rclsid, &data)) rclsid, &data))
{ {
struct comclassredirect_data *comclass = (struct comclassredirect_data*)data.lpData;
clsreg.u.actctx.hactctx = data.hActCtx; clsreg.u.actctx.hactctx = data.hActCtx;
clsreg.u.actctx.data = data.lpData; clsreg.u.actctx.data = data.lpData;
clsreg.u.actctx.section = data.lpSectionBase; clsreg.u.actctx.section = data.lpSectionBase;
clsreg.hkey = FALSE; clsreg.hkey = FALSE;
hres = get_inproc_class_object(apt, &clsreg, rclsid, iid, !(dwClsContext & WINE_CLSCTX_DONT_HOST), ppv); hres = get_inproc_class_object(apt, &clsreg, &comclass->clsid, iid, !(dwClsContext & WINE_CLSCTX_DONT_HOST), ppv);
ReleaseActCtx(data.hActCtx); ReleaseActCtx(data.hActCtx);
if (release_apt) apartment_release(apt); if (release_apt) apartment_release(apt);
return hres; return hres;
......
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