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
540f11f6
Commit
540f11f6
authored
Feb 04, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Check NULL ptr differently (Coverity).
parent
af835d65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
main.c
dlls/cryptui/main.c
+15
-16
No files found.
dlls/cryptui/main.c
View file @
540f11f6
...
...
@@ -1076,25 +1076,24 @@ static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
HWND
tab
=
GetDlgItem
(
hwnd
,
IDC_MGR_STORES
);
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
CertMgrData
));
if
(
data
)
if
(
!
data
)
return
0
;
data
->
imageList
=
ImageList_Create
(
16
,
16
,
ILC_COLOR4
|
ILC_MASK
,
2
,
0
);
if
(
data
->
imageList
)
{
data
->
imageList
=
ImageList_Create
(
16
,
16
,
ILC_COLOR4
|
ILC_MASK
,
2
,
0
);
if
(
data
->
imageList
)
{
HBITMAP
bmp
;
COLORREF
backColor
=
RGB
(
255
,
0
,
255
);
HBITMAP
bmp
;
COLORREF
backColor
=
RGB
(
255
,
0
,
255
);
bmp
=
LoadBitmapW
(
hInstance
,
MAKEINTRESOURCEW
(
IDB_SMALL_ICONS
));
ImageList_AddMasked
(
data
->
imageList
,
bmp
,
backColor
);
DeleteObject
(
bmp
);
ImageList_SetBkColor
(
data
->
imageList
,
CLR_NONE
);
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
),
LVM_SETIMAGELIST
,
LVSIL_SMALL
,
(
LPARAM
)
data
->
imageList
);
}
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
data
->
title
=
pCryptUICertMgr
->
pwszTitle
;
bmp
=
LoadBitmapW
(
hInstance
,
MAKEINTRESOURCEW
(
IDB_SMALL_ICONS
));
ImageList_AddMasked
(
data
->
imageList
,
bmp
,
backColor
);
DeleteObject
(
bmp
);
ImageList_SetBkColor
(
data
->
imageList
,
CLR_NONE
);
SendMessageW
(
GetDlgItem
(
hwnd
,
IDC_MGR_CERTS
),
LVM_SETIMAGELIST
,
LVSIL_SMALL
,
(
LPARAM
)
data
->
imageList
);
}
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
data
->
title
=
pCryptUICertMgr
->
pwszTitle
;
initialize_purpose_selection
(
hwnd
);
add_cert_columns
(
hwnd
);
if
(
pCryptUICertMgr
->
pwszTitle
)
...
...
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