regedit: Remove some superfluous casts.

oldstable
Michael Stefaniuc 2008-12-04 05:32:06 +01:00 committed by Alexandre Julliard
parent cf8571fed0
commit 683c53db42
4 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)
};

View File

@ -860,7 +860,7 @@ static void REGPROC_print_error(void)
exit(1);
}
puts(lpMsgBuf);
LocalFree((HLOCAL)lpMsgBuf);
LocalFree(lpMsgBuf);
exit(1);
}

View File

@ -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;