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
7ab7e299
Commit
7ab7e299
authored
May 27, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/git: Use CRT allocation functions.
parent
0f72487b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
git.c
dlls/ole32/git.c
+17
-17
No files found.
dlls/ole32/git.c
View file @
7ab7e299
...
...
@@ -182,7 +182,7 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal(
zero
.
QuadPart
=
0
;
IStream_Seek
(
stream
,
zero
,
STREAM_SEEK_SET
,
NULL
);
entry
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
StdGITE
ntry
));
entry
=
malloc
(
sizeof
(
*
e
ntry
));
if
(
!
entry
)
{
CoReleaseMarshalData
(
stream
);
...
...
@@ -240,8 +240,8 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(
return
hr
;
}
IStream_Release
(
entry
->
stream
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
free
(
entry
);
return
S_OK
;
}
...
...
@@ -306,7 +306,7 @@ HRESULT WINAPI GlobalInterfaceTable_CreateInstance(IClassFactory *iface, IUnknow
if
(
!
std_git
)
{
git
=
heap_
alloc
(
sizeof
(
*
git
));
git
=
m
alloc
(
sizeof
(
*
git
));
if
(
!
git
)
return
E_OUTOFMEMORY
;
git
->
IGlobalInterfaceTable_iface
.
lpVtbl
=
&
StdGlobalInterfaceTableImpl_Vtbl
;
...
...
@@ -315,7 +315,7 @@ HRESULT WINAPI GlobalInterfaceTable_CreateInstance(IClassFactory *iface, IUnknow
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
std_git
,
&
git
->
IGlobalInterfaceTable_iface
,
NULL
))
{
heap_
free
(
git
);
free
(
git
);
}
else
TRACE
(
"Created the GIT %p
\n
"
,
git
);
...
...
@@ -326,20 +326,20 @@ HRESULT WINAPI GlobalInterfaceTable_CreateInstance(IClassFactory *iface, IUnknow
void
release_std_git
(
void
)
{
StdGlobalInterfaceTableImpl
*
git
;
StdGITEntry
*
entry
,
*
entry2
;
StdGlobalInterfaceTableImpl
*
git
;
StdGITEntry
*
entry
,
*
entry2
;
if
(
!
std_git
)
return
;
if
(
!
std_git
)
return
;
git
=
impl_from_IGlobalInterfaceTable
(
std_git
);
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
git
->
list
,
StdGITEntry
,
entry
)
{
list_remove
(
&
entry
->
entry
);
git
=
impl_from_IGlobalInterfaceTable
(
std_git
);
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
git
->
list
,
StdGITEntry
,
entry
)
{
list_remove
(
&
entry
->
entry
);
CoReleaseMarshalData
(
entry
->
stream
);
IStream_Release
(
entry
->
stream
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
}
CoReleaseMarshalData
(
entry
->
stream
);
IStream_Release
(
entry
->
stream
);
free
(
entry
);
}
HeapFree
(
GetProcessHeap
(),
0
,
git
);
free
(
git
);
}
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