https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c5e707ec1f0ea489a6335…
commit c5e707ec1f0ea489a6335e544e39455cc15251b4
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Sun Dec 24 23:52:10 2017 +0200
[UXTHEME] EnableThemeDialogTexture: Update window theme only when ETDT_USETABTEXTURE
is used
---
dll/win32/uxtheme/draw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/uxtheme/draw.c b/dll/win32/uxtheme/draw.c
index dd37ad2cc1..c18a5986c4 100644
--- a/dll/win32/uxtheme/draw.c
+++ b/dll/win32/uxtheme/draw.c
@@ -47,8 +47,8 @@ HRESULT WINAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags)
if (dwFlags & ETDT_USETABTEXTURE)
return SetWindowTheme (hwnd, NULL, szTab);
else
- return SetWindowTheme (hwnd, NULL, NULL);
- }
+ return S_OK;
+}
/***********************************************************************
* IsThemeDialogTextureEnabled (UXTHEME.@)