msvcr90: Prefer native dll if manifest is not present

Alexandre Julliard julliard at winehq.org
Wed Oct 8 10:52:01 CDT 2014


Nikolay Sivov <nsivov at codeweavers.com> writes:

>> +#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.

Actually you can't call Windows APIs in DLL_WINE_PREATTACH.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list