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
d9d66570
Commit
d9d66570
authored
Jun 20, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/recinfo: Use CRT allocation functions.
parent
078f4dcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
recinfo.c
dlls/oleaut32/recinfo.c
+4
-4
No files found.
dlls/oleaut32/recinfo.c
View file @
d9d66570
...
...
@@ -179,9 +179,9 @@ static ULONG WINAPI IRecordInfoImpl_Release(IRecordInfo *iface)
for
(
i
=
0
;
i
<
This
->
n_vars
;
i
++
)
SysFreeString
(
This
->
fields
[
i
].
name
);
SysFreeString
(
This
->
name
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
fields
);
free
(
This
->
fields
);
ITypeInfo_Release
(
This
->
pTypeInfo
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
}
return
ref
;
}
...
...
@@ -667,7 +667,7 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo
return
E_INVALIDARG
;
}
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
ret
));
ret
=
calloc
(
1
,
sizeof
(
*
ret
));
ret
->
IRecordInfo_iface
.
lpVtbl
=
&
IRecordInfoImplVtbl
;
ret
->
ref
=
1
;
ret
->
pTypeInfo
=
pTypeInfo
;
...
...
@@ -687,7 +687,7 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo
ret
->
name
=
NULL
;
}
ret
->
fields
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ret
->
n_vars
*
sizeof
(
fieldstr
));
ret
->
fields
=
calloc
(
ret
->
n_vars
,
sizeof
(
fieldstr
));
for
(
i
=
0
;
i
<
ret
->
n_vars
;
i
++
)
{
VARDESC
*
vardesc
;
hres
=
ITypeInfo_GetVarDesc
(
pTypeInfo
,
i
,
&
vardesc
);
...
...
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