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
620ca68d
Commit
620ca68d
authored
Sep 28, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Allocate a small temp variable on the stack instead of the heap.
parent
ef104dc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
ole2.c
dlls/ole32/ole2.c
+10
-12
No files found.
dlls/ole32/ole2.c
View file @
620ca68d
...
...
@@ -2530,19 +2530,17 @@ HRESULT WINAPI OleCreate(
if
(
SUCCEEDED
(
hres2
))
{
DWORD
dwConnection
;
FORMATETC
*
pfe
;
if
(
renderopt
==
OLERENDER_DRAW
&&
!
pFormatEtc
)
{
pfe
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
FORMATETC
));
pfe
->
cfFormat
=
0
;
pfe
->
ptd
=
NULL
;
pfe
->
dwAspect
=
DVASPECT_CONTENT
;
pfe
->
lindex
=
-
1
;
pfe
->
tymed
=
TYMED_NULL
;
}
else
pfe
=
pFormatEtc
;
hres
=
IOleCache_Cache
(
pOleCache
,
pfe
,
ADVF_PRIMEFIRST
,
&
dwConnection
);
if
(
!
pFormatEtc
&&
pfe
)
HeapFree
(
GetProcessHeap
(),
0
,
pfe
);
FORMATETC
pfe
;
pfe
.
cfFormat
=
0
;
pfe
.
ptd
=
NULL
;
pfe
.
dwAspect
=
DVASPECT_CONTENT
;
pfe
.
lindex
=
-
1
;
pfe
.
tymed
=
TYMED_NULL
;
hres
=
IOleCache_Cache
(
pOleCache
,
&
pfe
,
ADVF_PRIMEFIRST
,
&
dwConnection
);
}
else
hres
=
IOleCache_Cache
(
pOleCache
,
pFormatEtc
,
ADVF_PRIMEFIRST
,
&
dwConnection
);
IOleCache_Release
(
pOleCache
);
}
}
...
...
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