comctl32: Remove unneeded casts.
diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c
index 7fe5676..2c2cd1a 100644
--- a/dlls/comctl32/commctrl.c
+++ b/dlls/comctl32/commctrl.c
@@ -207,7 +207,7 @@
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
- COMCTL32_hModule = (HMODULE)hinstDLL;
+ COMCTL32_hModule = hinstDLL;
/* add global subclassing atom (used by 'tooltip' and 'updown') */
COMCTL32_wSubclass = (LPWSTR)(DWORD_PTR)GlobalAddAtomW (strCC32SubclassInfo);
@@ -885,7 +885,7 @@
return 0;
RtlMoveMemory (lpBitmapInfo, lpBitmap, nSize);
- pColorTable = (RGBQUAD*)(((LPBYTE)lpBitmapInfo)+(UINT)lpBitmapInfo->biSize);
+ pColorTable = (RGBQUAD*)(((LPBYTE)lpBitmapInfo) + lpBitmapInfo->biSize);
for (iColor = 0; iColor < nColorTableSize; iColor++) {
for (i = 0; i < iMaps; i++) {
@@ -907,8 +907,8 @@
}
}
}
- nWidth = (INT)lpBitmapInfo->biWidth;
- nHeight = (INT)lpBitmapInfo->biHeight;
+ nWidth = lpBitmapInfo->biWidth;
+ nHeight = lpBitmapInfo->biHeight;
hdcScreen = GetDC (NULL);
hbm = CreateCompatibleBitmap (hdcScreen, nWidth, nHeight);
if (hbm) {