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
53d28704
Commit
53d28704
authored
Jul 13, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xolehlp: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
b9a61cde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
xolehlp.c
dlls/xolehlp/xolehlp.c
+8
-9
No files found.
dlls/xolehlp/xolehlp.c
View file @
53d28704
...
@@ -82,7 +82,7 @@ static ULONG WINAPI ResourceManager_Release(IResourceManager *iface)
...
@@ -82,7 +82,7 @@ static ULONG WINAPI ResourceManager_Release(IResourceManager *iface)
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
}
}
return
ref
;
return
ref
;
...
@@ -130,7 +130,7 @@ static HRESULT ResourceManager_Create(REFIID riid, void **ppv)
...
@@ -130,7 +130,7 @@ static HRESULT ResourceManager_Create(REFIID riid, void **ppv)
if
(
!
ppv
)
return
E_INVALIDARG
;
if
(
!
ppv
)
return
E_INVALIDARG
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ResourceManager
));
This
=
malloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IResourceManager_iface
.
lpVtbl
=
&
ResourceManager_Vtbl
;
This
->
IResourceManager_iface
.
lpVtbl
=
&
ResourceManager_Vtbl
;
...
@@ -200,7 +200,7 @@ static ULONG WINAPI TransactionOptions_Release(ITransactionOptions *iface)
...
@@ -200,7 +200,7 @@ static ULONG WINAPI TransactionOptions_Release(ITransactionOptions *iface)
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
}
}
return
ref
;
return
ref
;
...
@@ -240,7 +240,7 @@ static HRESULT TransactionOptions_Create(ITransactionOptions **ppv)
...
@@ -240,7 +240,7 @@ static HRESULT TransactionOptions_Create(ITransactionOptions **ppv)
if
(
!
ppv
)
return
E_INVALIDARG
;
if
(
!
ppv
)
return
E_INVALIDARG
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
TransactionOption
s
));
This
=
malloc
(
sizeof
(
*
Thi
s
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
ITransactionOptions_iface
.
lpVtbl
=
&
TransactionOptions_Vtbl
;
This
->
ITransactionOptions_iface
.
lpVtbl
=
&
TransactionOptions_Vtbl
;
...
@@ -309,7 +309,7 @@ static ULONG WINAPI Transaction_Release(ITransaction *iface)
...
@@ -309,7 +309,7 @@ static ULONG WINAPI Transaction_Release(ITransaction *iface)
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
}
}
return
ref
;
return
ref
;
...
@@ -352,9 +352,8 @@ static HRESULT Transaction_Create(ISOLEVEL isoLevel, ULONG isoFlags,
...
@@ -352,9 +352,8 @@ static HRESULT Transaction_Create(ISOLEVEL isoLevel, ULONG isoFlags,
if
(
!
ppv
)
return
E_INVALIDARG
;
if
(
!
ppv
)
return
E_INVALIDARG
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
Transaction
));
This
=
calloc
(
1
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
ZeroMemory
(
&
This
->
info
,
sizeof
(
This
->
info
));
This
->
ITransaction_iface
.
lpVtbl
=
&
Transaction_Vtbl
;
This
->
ITransaction_iface
.
lpVtbl
=
&
Transaction_Vtbl
;
This
->
ref
=
1
;
This
->
ref
=
1
;
...
@@ -439,7 +438,7 @@ static ULONG WINAPI TransactionDispenser_Release(ITransactionDispenser *iface)
...
@@ -439,7 +438,7 @@ static ULONG WINAPI TransactionDispenser_Release(ITransactionDispenser *iface)
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
}
}
return
ref
;
return
ref
;
...
@@ -614,7 +613,7 @@ static HRESULT TransactionManager_Create(REFIID riid, void **ppv)
...
@@ -614,7 +613,7 @@ static HRESULT TransactionManager_Create(REFIID riid, void **ppv)
TransactionManager
*
This
;
TransactionManager
*
This
;
HRESULT
ret
;
HRESULT
ret
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
TransactionManager
));
This
=
malloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
ITransactionDispenser_iface
.
lpVtbl
=
&
TransactionDispenser_Vtbl
;
This
->
ITransactionDispenser_iface
.
lpVtbl
=
&
TransactionDispenser_Vtbl
;
...
...
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