Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1bf787d5
Commit
1bf787d5
authored
Dec 01, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove unneeded casts.
parent
263cb72e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
commctrl.c
dlls/comctl32/commctrl.c
+1
-1
dpa.c
dlls/comctl32/dpa.c
+3
-3
dsa.c
dlls/comctl32/dsa.c
+1
-1
propsheet.c
dlls/comctl32/propsheet.c
+2
-2
toolbar.c
dlls/comctl32/toolbar.c
+2
-2
tooltips.c
dlls/comctl32/tooltips.c
+1
-1
trackbar.c
dlls/comctl32/trackbar.c
+1
-1
treeview.c
dlls/comctl32/treeview.c
+1
-1
No files found.
dlls/comctl32/commctrl.c
View file @
1bf787d5
...
...
@@ -343,7 +343,7 @@ MenuHelp (UINT uMsg, WPARAM wParam, LPARAM lParam, HMENU hMainMenu,
else
{
/* menu item was selected */
if
(
HIWORD
(
wParam
)
&
MF_POPUP
)
uMenuID
=
(
UINT
)
*
(
lpwIDs
+
1
);
uMenuID
=
*
(
lpwIDs
+
1
);
else
uMenuID
=
(
UINT
)
LOWORD
(
wParam
);
TRACE
(
"uMenuID = %u
\n
"
,
uMenuID
);
...
...
dlls/comctl32/dpa.c
View file @
1bf787d5
...
...
@@ -443,7 +443,7 @@ HDPA WINAPI DPA_Clone (const HDPA hdpa, const HDPA hdpaNew)
/* create a new pointer array */
nNewItems
=
hdpaTemp
->
nGrow
*
((
INT
)(
(
hdpa
->
nItemCount
-
1
)
/
hdpaTemp
->
nGrow
)
+
1
);
(((
hdpa
->
nItemCount
-
1
)
/
hdpaTemp
->
nGrow
)
+
1
);
nSize
=
nNewItems
*
sizeof
(
LPVOID
);
hdpaTemp
->
ptrs
=
HeapAlloc
(
hdpaTemp
->
hHeap
,
HEAP_ZERO_MEMORY
,
nSize
);
hdpaTemp
->
nMaxCount
=
nNewItems
;
...
...
@@ -583,7 +583,7 @@ BOOL WINAPI DPA_SetPtr (const HDPA hdpa, INT i, LPVOID p)
if
(
hdpa
->
nMaxCount
<=
i
)
{
/* resize the block of memory */
INT
nNewItems
=
hdpa
->
nGrow
*
((
INT
)(
((
i
+
1
)
-
1
)
/
hdpa
->
nGrow
)
+
1
);
hdpa
->
nGrow
*
((((
i
+
1
)
-
1
)
/
hdpa
->
nGrow
)
+
1
);
INT
nSize
=
nNewItems
*
sizeof
(
LPVOID
);
if
(
hdpa
->
ptrs
)
...
...
@@ -654,7 +654,7 @@ LPVOID WINAPI DPA_DeletePtr (const HDPA hdpa, INT i)
return
NULL
;
hdpa
->
nMaxCount
=
nNewItems
;
hdpa
->
ptrs
=
(
LPVOID
*
)
lpDest
;
hdpa
->
ptrs
=
lpDest
;
}
return
lpTemp
;
...
...
dlls/comctl32/dsa.c
View file @
1bf787d5
...
...
@@ -211,7 +211,7 @@ BOOL WINAPI DSA_SetItem (const HDSA hdsa, INT nIndex, LPVOID pSrc)
else
{
/* resize the block of memory */
nNewItems
=
hdsa
->
nGrow
*
((
INT
)(
((
nIndex
+
1
)
-
1
)
/
hdsa
->
nGrow
)
+
1
);
hdsa
->
nGrow
*
((((
nIndex
+
1
)
-
1
)
/
hdsa
->
nGrow
)
+
1
);
nSize
=
hdsa
->
nItemSize
*
nNewItems
;
lpTemp
=
ReAlloc
(
hdsa
->
pData
,
nSize
);
...
...
dlls/comctl32/propsheet.c
View file @
1bf787d5
...
...
@@ -1527,7 +1527,7 @@ static VOID PROPSHEET_LoadWizardBitmaps(PropSheetInfo *psInfo)
if
((
psInfo
->
ppshheader
.
dwFlags
&
PSH_WATERMARK
)
&&
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_USEHBMWATERMARK
))
{
((
PropSheetInfo
*
)
psInfo
)
->
ppshheader
.
u4
.
hbmWatermark
=
psInfo
->
ppshheader
.
u4
.
hbmWatermark
=
CreateMappedBitmap
(
psInfo
->
ppshheader
.
hInstance
,
(
INT_PTR
)
psInfo
->
ppshheader
.
u4
.
pszbmWatermark
,
0
,
NULL
,
0
);
}
...
...
@@ -1535,7 +1535,7 @@ static VOID PROPSHEET_LoadWizardBitmaps(PropSheetInfo *psInfo)
if
((
psInfo
->
ppshheader
.
dwFlags
&
PSH_HEADER
)
&&
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_USEHBMHEADER
))
{
((
PropSheetInfo
*
)
psInfo
)
->
ppshheader
.
u5
.
hbmHeader
=
psInfo
->
ppshheader
.
u5
.
hbmHeader
=
CreateMappedBitmap
(
psInfo
->
ppshheader
.
hInstance
,
(
INT_PTR
)
psInfo
->
ppshheader
.
u5
.
pszbmHeader
,
0
,
NULL
,
0
);
}
}
...
...
dlls/comctl32/toolbar.c
View file @
1bf787d5
...
...
@@ -3190,7 +3190,7 @@ TOOLBAR_Customize (HWND hwnd)
(
LPWSTR
)
RT_DIALOG
)))
return
FALSE
;
if
(
!
(
template
=
(
LPVOID
)
LoadResource
(
COMCTL32_hModule
,
hRes
)))
if
(
!
(
template
=
LoadResource
(
COMCTL32_hModule
,
hRes
)))
return
FALSE
;
ret
=
DialogBoxIndirectParamW
((
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
),
...
...
@@ -5893,7 +5893,7 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr
->
nButtonDown
=
-
1
;
/* Issue NM_RELEASEDCAPTURE to parent to let him know it is released */
TOOLBAR_SendNotify
(
(
NMHDR
*
)
&
hdr
,
infoPtr
,
TOOLBAR_SendNotify
(
&
hdr
,
infoPtr
,
NM_RELEASEDCAPTURE
);
/* native issues TBN_ENDDRAG here, if _LBUTTONDOWN issued the
...
...
dlls/comctl32/tooltips.c
View file @
1bf787d5
...
...
@@ -1109,7 +1109,7 @@ TOOLTIPS_AddToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
IS_INTRESOURCE
(
lpToolInfo
->
lpszText
))
{
TRACE
(
"add string id %x
\n
"
,
LOWORD
(
lpToolInfo
->
lpszText
));
toolPtr
->
lpszText
=
(
LPWSTR
)
lpToolInfo
->
lpszText
;
toolPtr
->
lpszText
=
lpToolInfo
->
lpszText
;
}
else
if
(
lpToolInfo
->
lpszText
)
{
if
(
lpToolInfo
->
lpszText
==
LPSTR_TEXTCALLBACKW
)
{
...
...
dlls/comctl32/trackbar.c
View file @
1bf787d5
...
...
@@ -811,7 +811,7 @@ TRACKBAR_UpdateToolTip (const TRACKBAR_INFO *infoPtr)
ClientToScreen
(
infoPtr
->
hwndSelf
,
&
pt
);
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_TRACKPOSITION
,
0
,
(
LPARAM
)
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
0
,
MAKELPARAM
(
pt
.
x
,
pt
.
y
));
}
...
...
dlls/comctl32/treeview.c
View file @
1bf787d5
...
...
@@ -3996,7 +3996,7 @@ TREEVIEW_LButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam)
if
(
ht
.
hItem
&&
(
ht
.
flags
&
TVHT_ONITEM
))
{
infoPtr
->
focusedItem
=
ht
.
hItem
;
InvalidateRect
(
hwnd
,
&
(((
HTREEITEM
)(
ht
.
hItem
))
->
rect
)
,
TRUE
);
InvalidateRect
(
hwnd
,
&
ht
.
hItem
->
rect
,
TRUE
);
if
(
infoPtr
->
selectedItem
)
InvalidateRect
(
hwnd
,
&
(
infoPtr
->
selectedItem
->
rect
),
TRUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment