mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
regedit: Remove some superfluous casts.
This commit is contained in:
parent
cf8571fed0
commit
683c53db42
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
};
|
||||
|
@ -860,7 +860,7 @@ static void REGPROC_print_error(void)
|
||||
exit(1);
|
||||
}
|
||||
puts(lpMsgBuf);
|
||||
LocalFree((HLOCAL)lpMsgBuf);
|
||||
LocalFree(lpMsgBuf);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user