regedit: Remove some superfluous casts.
Michael Stefaniuc
mstefani at redhat.de
Wed Dec 3 22:32:06 CST 2008
---
programs/regedit/framewnd.c | 2 +-
programs/regedit/main.c | 4 ++--
programs/regedit/regproc.c | 2 +-
programs/regedit/treeview.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index a801703..5b19899 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -89,7 +89,7 @@ static void OnEnterMenuLoop(HWND hWnd)
nParts = -1;
SendMessageW(hStatusBar, SB_SETPARTS, 1, (long)&nParts);
bInMenuLoop = TRUE;
- SendMessageW(hStatusBar, SB_SETTEXTW, (WPARAM)0, (LPARAM)&empty);
+ SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)&empty);
}
static void OnExitMenuLoop(HWND hWnd)
diff --git a/programs/regedit/main.c b/programs/regedit/main.c
index 6fe129a..27bc26f 100644
--- a/programs/regedit/main.c
+++ b/programs/regedit/main.c
@@ -92,7 +92,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
0/*hbrBackground*/,
0/*lpszMenuName*/,
szFrameClass,
- (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
+ LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED)
};
ATOM hFrameWndClass = RegisterClassEx(&wcFrame); /* register frame window class */
@@ -109,7 +109,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
0/*hbrBackground*/,
0/*lpszMenuName*/,
szChildClass,
- (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
+ LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED)
};
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 028789a..a4e8936 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -860,7 +860,7 @@ static void REGPROC_print_error(void)
exit(1);
}
puts(lpMsgBuf);
- LocalFree((HLOCAL)lpMsgBuf);
+ LocalFree(lpMsgBuf);
exit(1);
}
diff --git a/programs/regedit/treeview.c b/programs/regedit/treeview.c
index f51ccfd..20d1b76 100644
--- a/programs/regedit/treeview.c
+++ b/programs/regedit/treeview.c
@@ -194,7 +194,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPWSTR label, HK
tvins.u.item.iSelectedImage = Image_Open;
tvins.u.item.cChildren = dwChildren;
tvins.u.item.lParam = (LPARAM)hKey;
- tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_SORT);
+ tvins.hInsertAfter = hKey ? TVI_LAST : TVI_SORT;
tvins.hParent = hParent;
return TreeView_InsertItemW(hwndTV, &tvins);
@@ -533,7 +533,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPWSTR pHostName)
tvins.u.item.cChildren = 5;
/* Save the heading level in the item's application-defined data area. */
tvins.u.item.lParam = 0;
- tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
+ tvins.hInsertAfter = TVI_FIRST;
tvins.hParent = TVI_ROOT;
/* Add the item to the tree view control. */
if (!(hRoot = TreeView_InsertItemW(hwndTV, &tvins))) return FALSE;
--
1.6.0.rc1
-------------- 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/20081204/cf1b900e/attachment-0001.pgp
More information about the wine-patches
mailing list