Dmitry Timoshkov (@dmitry) commented about dlls/activeds/activeds_main.c:
*/ HRESULT WINAPI ADsBuildVarArrayInt(LPDWORD lpdwObjectTypes, DWORD dwObjectTypes, VARIANT* pvar)
Since you are still changing the things around could you please also change parameter names to something like
HRESULT WINAPI **ADsBuildVarArrayInt**(LPDWORD values, DWORD count, VARIANT *****var)
Otherwise the patch looks good to me.