From 44ea8405351e14cfbe158fc26ea617ed8c23b748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 5 Mar 2012 20:34:50 +0000 Subject: [PATCH] There are days like that, when you'd better refrain from commit anything. svn path=/trunk/; revision=56059 --- reactos/dll/win32/uxtheme/system.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/uxtheme/system.c b/reactos/dll/win32/uxtheme/system.c index dda15aad910..fd11cf0947b 100644 --- a/reactos/dll/win32/uxtheme/system.c +++ b/reactos/dll/win32/uxtheme/system.c @@ -680,11 +680,13 @@ HTHEME WINAPI GetWindowTheme(HWND hwnd) HRESULT WINAPI SetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName, LPCWSTR pszSubIdList) { - if(!IsWindow(hwnd)) + HRESULT hr; + TRACE("(%p,%s,%s)\n", hwnd, debugstr_w(pszSubAppName), + debugstr_w(pszSubIdList)); + + if(!IsWindow(hwnd)) return E_HANDLE; - HRESULT hr; - TRACE("(%p,%s,%s)\n", hwnd, debugstr_w(pszSubAppName), hr = UXTHEME_SetWindowProperty(hwnd, atSubAppName, pszSubAppName); if(SUCCEEDED(hr)) hr = UXTHEME_SetWindowProperty(hwnd, atSubIdList, pszSubIdList);