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
e50e78f1
Commit
e50e78f1
authored
Jan 08, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Fix crash with native riched20.
parent
732fce7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
main.c
dlls/cryptui/main.c
+7
-1
No files found.
dlls/cryptui/main.c
View file @
e50e78f1
...
...
@@ -1666,6 +1666,7 @@ static void add_icon_to_control(HWND hwnd, int id)
HBITMAP
bitmap
=
NULL
;
RECT
rect
;
STGMEDIUM
stgm
;
LPOLECLIENTSITE
clientSite
=
NULL
;
REOBJECT
reObject
;
TRACE
(
"(%p, %d)
\n
"
,
hwnd
,
id
);
...
...
@@ -1695,6 +1696,9 @@ static void add_icon_to_control(HWND hwnd, int id)
(
void
**
)
&
dataObject
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
IRichEditOle_GetClientSite
(
richEditOle
,
&
clientSite
);
if
(
FAILED
(
hr
))
goto
end
;
bitmap
=
LoadImageW
(
hInstance
,
MAKEINTRESOURCEW
(
id
),
IMAGE_BITMAP
,
0
,
0
,
LR_DEFAULTSIZE
|
LR_LOADTRANSPARENT
);
if
(
!
bitmap
)
...
...
@@ -1714,7 +1718,7 @@ static void add_icon_to_control(HWND hwnd, int id)
reObject
.
clsid
=
clsid
;
reObject
.
poleobj
=
object
;
reObject
.
pstg
=
NULL
;
reObject
.
polesite
=
NULL
;
reObject
.
polesite
=
clientSite
;
reObject
.
sizel
.
cx
=
reObject
.
sizel
.
cy
=
0
;
reObject
.
dvaspect
=
DVASPECT_CONTENT
;
reObject
.
dwFlags
=
0
;
...
...
@@ -1723,6 +1727,8 @@ static void add_icon_to_control(HWND hwnd, int id)
IRichEditOle_InsertObject
(
richEditOle
,
&
reObject
);
end:
if
(
clientSite
)
IOleClientSite_Release
(
clientSite
);
if
(
dataObject
)
IDataObject_Release
(
dataObject
);
if
(
oleCache
)
...
...
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