Signed-off-by: Joel Leclerc meerkatanonymous@gmail.com --- v4: Add dwmapi component name to the commit message, sorry for the noise --- dlls/dwmapi/dwmapi_main.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c index 6378a091f0..812cf4597d 100644 --- a/dlls/dwmapi/dwmapi_main.c +++ b/dlls/dwmapi/dwmapi_main.c @@ -51,16 +51,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) */ HRESULT WINAPI DwmIsCompositionEnabled(BOOL *enabled) { - static int once; - if (!once) - { - FIXME("%p\n", enabled); - once = 1; - } - else - TRACE("%p\n", enabled); + TRACE("%p\n", enabled);
- *enabled = FALSE; + *enabled = TRUE; return S_OK; }
Joel Leclerc meerkatanonymous@gmail.com writes:
HRESULT WINAPI DwmIsCompositionEnabled(BOOL *enabled) {
- static int once;
- if (!once)
- {
FIXME("%p\n", enabled);
once = 1;
- }
- else
TRACE("%p\n", enabled);
- TRACE("%p\n", enabled);
- *enabled = FALSE;
- *enabled = TRUE;
It seems that this is only moving the problem around. We'd probably need to check the manifest version as described in MSDN.