Nikolay Sivov nsivov@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.