winecfg: Remove superfluous casts.
Michael Stefaniuc
mstefani at redhat.de
Wed Jan 7 17:37:36 CST 2009
---
programs/winecfg/theme.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c
index d87aba0..6b67b4e 100644
--- a/programs/winecfg/theme.c
+++ b/programs/winecfg/theme.c
@@ -116,7 +116,7 @@ static void color_or_size_dsa_add (WrappedDsa* wdsa, const WCHAR* name,
static int CALLBACK dsa_destroy_callback (LPVOID p, LPVOID pData)
{
- ThemeColorOrSize* item = (ThemeColorOrSize*)p;
+ ThemeColorOrSize* item = p;
HeapFree (GetProcessHeap(), 0, item->name);
HeapFree (GetProcessHeap(), 0, item->fancyName);
return 1;
@@ -135,7 +135,7 @@ static void create_color_or_size_dsa (WrappedDsa* wdsa)
static ThemeColorOrSize* color_or_size_dsa_get (WrappedDsa* wdsa, int index)
{
- return (ThemeColorOrSize*)DSA_GetItemPtr (wdsa->dsa, index);
+ return DSA_GetItemPtr (wdsa->dsa, index);
}
static int color_or_size_dsa_find (WrappedDsa* wdsa, const WCHAR* name)
@@ -163,7 +163,7 @@ static int themeFilesCount = 0;
static int CALLBACK theme_dsa_destroy_callback (LPVOID p, LPVOID pData)
{
- ThemeFile* item = (ThemeFile*)p;
+ ThemeFile* item = p;
HeapFree (GetProcessHeap(), 0, item->themeFileName);
HeapFree (GetProcessHeap(), 0, item->fancyName);
free_color_or_size_dsa (&item->colors);
--
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090108/b59b29b5/attachment.pgp
More information about the wine-patches
mailing list