load_library_settings(dialog);
- SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SELECTSTRING, (WPARAM) 0, (LPARAM) buffer);
+ SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SELECTSTRING, 0, (LPARAM) buffer);
set_controls_from_selection(dialog);
}
for (i = 0; i < themeFilesCount; i++)
{
- ThemeFile* item = (ThemeFile*)DSA_GetItemPtr (themeFiles, i);
+ ThemeFile* item = DSA_GetItemPtr (themeFiles, i);
SendMessageW (comboTheme, CB_ADDSTRING, 0,
(LPARAM)item->fancyName);
}
BOOL found = FALSE;
for (i = 0; i < themeFilesCount; i++)
{
- theme = (ThemeFile*)DSA_GetItemPtr (themeFiles, i);
+ theme = DSA_GetItemPtr (themeFiles, i);
if (lstrcmpiW (theme->themeFileName, currentTheme) == 0)
{
found = TRUE;
myEnumThemeProc (NULL, currentTheme, currentTheme,
currentTheme, NULL, NULL);
themeIndex = themeFilesCount;
- theme = (ThemeFile*)DSA_GetItemPtr (themeFiles,
- themeFilesCount-1);
+ theme = DSA_GetItemPtr (themeFiles, themeFilesCount-1);
}
fill_color_size_combos (theme, comboColor, comboSize);
select_color_and_size (theme, currentColor, comboColor,
WCHAR currentTheme[MAX_PATH];
WCHAR currentColor[MAX_PATH];
WCHAR currentSize[MAX_PATH];
- ThemeFile* theme =
- (ThemeFile*)DSA_GetItemPtr (themeFiles, themeIndex - 1);
+ ThemeFile* theme = DSA_GetItemPtr (themeFiles, themeIndex - 1);
fill_color_size_combos (theme, comboColor, comboSize);
}
else
{
- ThemeFile* theme =
- (ThemeFile*)DSA_GetItemPtr (themeFiles, themeIndex-1);
+ ThemeFile* theme = DSA_GetItemPtr (themeFiles, themeIndex-1);
const WCHAR* themeFileName = theme->themeFileName;
const WCHAR* colorName = NULL;
const WCHAR* sizeName = NULL;