From 247b77c7841cb5c9c0310abb64242cefe7e90fea Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Mon, 15 Aug 2016 01:53:47 +0300
Subject: [PATCH] Alpha version 0.10.2: returned uxtheme.dll loading for
 Windows XP.

---
 Telegram/SourceFiles/platform/win/windows_dlls.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Telegram/SourceFiles/platform/win/windows_dlls.cpp b/Telegram/SourceFiles/platform/win/windows_dlls.cpp
index 299136f31..84d0f56bb 100644
--- a/Telegram/SourceFiles/platform/win/windows_dlls.cpp
+++ b/Telegram/SourceFiles/platform/win/windows_dlls.cpp
@@ -72,11 +72,11 @@ void start() {
 	load(LibShell32, "SHQueryUserNotificationState", SHQueryUserNotificationState);
 	load(LibShell32, "SetCurrentProcessExplicitAppUserModelID", SetCurrentProcessExplicitAppUserModelID);
 
+	LibUxTheme = LoadLibrary(L"UXTHEME.DLL");
+	load(LibUxTheme, "SetWindowTheme", SetWindowTheme);
+
 	auto version = QSysInfo::windowsVersion();
 	if (version >= QSysInfo::WV_VISTA) {
-		LibUxTheme = LoadLibrary(L"UXTHEME.DLL");
-		load(LibUxTheme, "SetWindowTheme", SetWindowTheme);
-
 		LibWtsApi32 = LoadLibrary(L"WTSAPI32.DLL");
 		load(LibWtsApi32, "WTSRegisterSessionNotification", WTSRegisterSessionNotification);
 		load(LibWtsApi32, "WTSUnRegisterSessionNotification", WTSUnRegisterSessionNotification);