From ab7897e9d61f3101ef7ba7629462329cdc564d78 Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Wed, 27 Jul 2011 01:00:47 +0000 Subject: [PATCH] [DESK] - Fix MS VC compilation. Spotted by Michael Martin - Remove unused definition svn path=/trunk/; revision=52913 --- reactos/dll/cpl/desk/theme.c | 6 +++--- reactos/dll/cpl/desk/theme.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/dll/cpl/desk/theme.c b/reactos/dll/cpl/desk/theme.c index c9cc56c6ff7..9827c0e5265 100644 --- a/reactos/dll/cpl/desk/theme.c +++ b/reactos/dll/cpl/desk/theme.c @@ -120,8 +120,8 @@ VOID LoadCurrentTheme(THEME* theme) /* FIXME: XP seems to use grayed checkboxes to reflect differences between menu and tooltips settings * Just keep them in sync for now: */ - theme->Effects.bTooltipAnimation = theme->Effects.bMenuAnimation; - theme->Effects.bTooltipFade = theme->Effects.bMenuFade; + theme->Effects.bTooltipAnimation = theme->Effects.bMenuAnimation; + theme->Effects.bTooltipFade = theme->Effects.bMenuFade; /* show content of windows during dragging */ SystemParametersInfo(SPI_GETDRAGFULLWINDOWS, 0, &theme->Effects.bDragFullWindows, 0); @@ -138,6 +138,7 @@ BOOL LoadThemeFromReg(THEME* theme, INT ThemeId) TCHAR strValueName[10]; HKEY hkNewSchemes, hkScheme, hkSize; DWORD dwType, dwLength; + UINT64 iSize; BOOL Ret = FALSE; if (!g_PresetLoaded) @@ -190,7 +191,6 @@ BOOL LoadThemeFromReg(THEME* theme, INT ThemeId) for (i = 0; i < NUM_SIZES; i++) { wsprintf(strValueName, TEXT("Size #%d"), i); - UINT64 iSize; dwLength = sizeof(UINT64); if (RegQueryValueEx(hkSize, strValueName, NULL, &dwType, (LPBYTE)&iSize, &dwLength) != ERROR_SUCCESS || dwType != REG_QWORD || dwLength != sizeof(UINT64)) diff --git a/reactos/dll/cpl/desk/theme.h b/reactos/dll/cpl/desk/theme.h index c7ac206c12b..68a7a253da2 100644 --- a/reactos/dll/cpl/desk/theme.h +++ b/reactos/dll/cpl/desk/theme.h @@ -33,7 +33,6 @@ #define NUM_SIZES 20 #define NUM_COLORS 31 #define MAX_TEMPLATES 50 -#define MAX_COLORNAMELENGTH 30 #define MAX_TEMPLATENAMELENTGH 80 /* Some typedefs for theme */