Signed-off-by: Joel Leclerc meerkatanonymous@gmail.com --- v3: Always set *enabled = TRUE, as this corresponds with Windows 8+'s behavior according to MSDN. --- 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; }