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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
git.c
dlls/ole32/git.c
+6
-6
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
);
...
...
@@ -241,7 +241,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(
}
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
);
...
...
@@ -338,8 +338,8 @@ void release_std_git(void)
CoReleaseMarshalData
(
entry
->
stream
);
IStream_Release
(
entry
->
stream
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
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