diff --git a/com.d b/com.d index cb81581..2a1db6f 100644 --- a/com.d +++ b/com.d @@ -614,7 +614,7 @@ auto createComObject(T = Dynamic)(GUID classId) { T obj; } - ComCheck(CoCreateInstance(&classId, null, /*CLSCTX_INPROC_SERVER*/ CLSCTX_LOCAL_SERVER, &iid, cast(void**) &obj), "Failed to create object"); + ComCheck(CoCreateInstance(&classId, null, CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER, &iid, cast(void**) &obj), "Failed to create object"); return ComClient!(Dify!T, typeof(obj))(obj); }