From 9a213745caabb8cfa6a104939039f56f75c83ca4 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sat, 18 Feb 2017 18:14:32 +0000 Subject: [PATCH] [DESK.CPL] -Apparently the second parameter of ApplyTheme is not a string. One case is that it is not a pointer and another case that it is a pointer to a struct. What I'm sure of is that as it is now the position of the string in the binary affects the behavior of ApplyTheme. Thankfully 0 works great on windows. svn path=/trunk/; revision=73828 --- reactos/dll/cpl/desk/theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/cpl/desk/theme.c b/reactos/dll/cpl/desk/theme.c index eb8c8786210..e76c4e6a511 100644 --- a/reactos/dll/cpl/desk/theme.c +++ b/reactos/dll/cpl/desk/theme.c @@ -879,7 +879,7 @@ ActivateTheme(IN PTHEME_SELECTION pSelectedTheme) if (!SUCCEEDED(hret)) return FALSE; } - hret = ApplyTheme(hThemeFile, "", 0); + hret = ApplyTheme(hThemeFile, 0, 0); if (pSelectedTheme->ThemeActive) { -- 2.17.1