Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
20c3512b
Commit
20c3512b
authored
Dec 20, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Don't cast NULL to an integer type.
parent
93d45253
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
main.c
dlls/cryptui/main.c
+4
-5
No files found.
dlls/cryptui/main.c
View file @
20c3512b
...
...
@@ -1464,7 +1464,7 @@ static void enumerate_stores(HWND hwnd, CRYPTUI_ENUM_DATA *pEnumData)
static
void
free_store_info
(
HWND
tree
)
{
HTREEITEM
next
=
(
HTREEITEM
)
SendMessageW
(
tree
,
TVM_GETNEXTITEM
,
TVGN_CHILD
,
(
LPARAM
)
NULL
);
0
);
while
(
next
)
{
...
...
@@ -1552,7 +1552,7 @@ static LRESULT CALLBACK select_store_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
{
HWND
tree
=
GetDlgItem
(
hwnd
,
IDC_STORE_LIST
);
HTREEITEM
selection
=
(
HTREEITEM
)
SendMessageW
(
tree
,
TVM_GETNEXTITEM
,
TVGN_CARET
,
(
LPARAM
)
NULL
);
TVM_GETNEXTITEM
,
TVGN_CARET
,
0
);
selectInfo
=
(
struct
SelectStoreInfo
*
)
GetWindowLongPtrW
(
hwnd
,
DWLP_USER
);
...
...
@@ -4113,8 +4113,7 @@ static void show_dialog_for_selected_cert(HWND hwnd)
memset
(
&
item
,
0
,
sizeof
(
item
));
item
.
mask
=
TVIF_HANDLE
|
TVIF_PARAM
;
item
.
hItem
=
(
HTREEITEM
)
SendMessageW
(
tree
,
TVM_GETNEXTITEM
,
TVGN_CARET
,
(
LPARAM
)
NULL
);
item
.
hItem
=
(
HTREEITEM
)
SendMessageW
(
tree
,
TVM_GETNEXTITEM
,
TVGN_CARET
,
0
);
SendMessageW
(
tree
,
TVM_GETITEMW
,
0
,
(
LPARAM
)
&
item
);
data
=
get_hierarchy_data_from_tree_item
(
tree
,
item
.
hItem
);
selection
=
lparam_to_index
(
data
,
item
.
lParam
);
...
...
@@ -4216,7 +4215,7 @@ static LRESULT CALLBACK hierarchy_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
memset
(
&
item
,
0
,
sizeof
(
item
));
item
.
mask
=
TVIF_HANDLE
|
TVIF_PARAM
;
item
.
hItem
=
(
HTREEITEM
)
SendMessageW
(
tree
,
TVM_GETNEXTITEM
,
TVGN_ROOT
,
(
LPARAM
)
NULL
);
0
);
data
=
get_hierarchy_data_from_tree_item
(
tree
,
item
.
hItem
);
/* Delete the contents of the tree */
SendMessageW
(
tree
,
TVM_DELETEITEM
,
0
,
(
LPARAM
)
TVI_ROOT
);
...
...
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