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
53724c2e
Commit
53724c2e
authored
Dec 13, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jan 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore/tests: Use CRT allocation functions.
parent
b12078d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+5
-10
No files found.
dlls/uiautomationcore/tests/uiautomation.c
View file @
53724c2e
...
...
@@ -1823,7 +1823,7 @@ static struct prov_method_sequence *sequence;
static
void
flush_method_sequence
(
void
)
{
HeapFree
(
GetProcessHeap
(),
0
,
sequence
);
free
(
sequence
);
sequence
=
NULL
;
sequence_cnt
=
sequence_size
=
0
;
}
...
...
@@ -1836,15 +1836,10 @@ static void add_method_call(struct Provider *prov, int method)
if
(
!
method_sequences_enabled
)
return
;
if
(
!
sequence
)
{
sequence_size
=
10
;
sequence
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sequence_size
*
sizeof
(
*
sequence
));
}
if
(
sequence_cnt
==
sequence_size
)
{
sequence_size
*=
2
;
sequence
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
sequence
,
sequence_size
*
sizeof
(
*
sequence
));
sequence_size
=
sequence_size
?
sequence_size
*
2
:
10
;
sequence
=
realloc
(
sequence
,
sequence_size
*
sizeof
(
*
sequence
));
}
prov_method
.
prov
=
prov
;
...
...
@@ -8859,7 +8854,7 @@ static ULONG WINAPI ClientSideProvider_Release(IRawElementProviderSimple *iface)
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
return
ref
;
}
...
...
@@ -8931,7 +8926,7 @@ static IRawElementProviderSimpleVtbl ClientSideProviderVtbl = {
static
IRawElementProviderSimple
*
create_temporary_clientside_provider
(
HWND
hwnd
,
enum
ProviderType
prov_type
)
{
struct
ClientSideProvider
*
prov
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
prov
));
struct
ClientSideProvider
*
prov
=
malloc
(
sizeof
(
*
prov
));
if
(
!
prov
)
{
...
...
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