msvcr90: Prefer native dll if manifest is not present
Nikolay Sivov
nsivov at codeweavers.com
Wed Oct 8 09:36:20 CDT 2014
> +#if _MSVCR_VER == 90
> + static const WCHAR msvcr90W[] = {'m','s','v','c','r','9','0','.','d','l','l',0};
> + ACTCTX_SECTION_KEYED_DATA askd = { sizeof(askd) };
> +
> + if(FindActCtxSectionStringW(FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX, NULL,
> + ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION, msvcr90W, &askd)) {
> + ReleaseActCtx(askd.hActCtx);
> + return TRUE;
> + }
> +
> + return FALSE;
> +#endif
It looks like you won't be using context handle anyway, so you can just
set flags to zero,
and return FindActCtxSectionStringW() value immediately.
More information about the wine-devel
mailing list