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
75bde26b
Commit
75bde26b
authored
Aug 02, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Use heap helpers for allocation.
parent
b4bab767
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
convert.c
dlls/oledb32/convert.c
+2
-4
datainit.c
dlls/oledb32/datainit.c
+4
-8
errorinfo.c
dlls/oledb32/errorinfo.c
+2
-2
No files found.
dlls/oledb32/convert.c
View file @
75bde26b
...
...
@@ -103,9 +103,7 @@ static ULONG WINAPI convert_Release(IDataConvert* iface)
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
heap_free
(
This
);
return
ref
;
}
...
...
@@ -1548,7 +1546,7 @@ HRESULT create_oledb_convert(IUnknown *outer, void **obj)
if
(
outer
)
return
CLASS_E_NOAGGREGATION
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
This
=
heap_alloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IDataConvert_iface
.
lpVtbl
=
&
convert_vtbl
;
...
...
dlls/oledb32/datainit.c
View file @
75bde26b
...
...
@@ -173,9 +173,7 @@ static ULONG WINAPI dbinit_Release(IDBInitialize *iface)
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
heap_free
(
This
);
return
ref
;
}
...
...
@@ -215,7 +213,7 @@ static HRESULT create_db_init(void **obj)
*
obj
=
NULL
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
This
=
heap_alloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IDBInitialize_iface
.
lpVtbl
=
&
dbinit_vtbl
;
...
...
@@ -266,9 +264,7 @@ static ULONG WINAPI datainit_Release(IDataInitialize *iface)
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
heap_free
(
This
);
return
ref
;
}
...
...
@@ -818,7 +814,7 @@ HRESULT create_data_init(IUnknown *outer, void **obj)
*
obj
=
NULL
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
This
=
heap_alloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IDataInitialize_iface
.
lpVtbl
=
&
datainit_vtbl
;
...
...
dlls/oledb32/errorinfo.c
View file @
75bde26b
...
...
@@ -117,7 +117,7 @@ static ULONG WINAPI IErrorInfoImpl_Release(IErrorInfo* iface)
SysFreeString
(
This
->
source
);
SysFreeString
(
This
->
description
);
SysFreeString
(
This
->
help_file
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
heap_free
(
This
);
}
return
ref
;
}
...
...
@@ -340,7 +340,7 @@ HRESULT create_error_info(IUnknown *outer, void **obj)
if
(
outer
)
return
CLASS_E_NOAGGREGATION
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
This
=
heap_alloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IErrorInfo_iface
.
lpVtbl
=
&
ErrorInfoVtbl
;
...
...
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