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
7918bfc5
Commit
7918bfc5
authored
Jul 03, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/tests: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
5284e1db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
d2d1.c
dlls/d2d1/tests/d2d1.c
+5
-6
No files found.
dlls/d2d1/tests/d2d1.c
View file @
7918bfc5
...
...
@@ -28,7 +28,6 @@
#include "initguid.h"
#include "dwrite.h"
#include "wincodec.h"
#include "wine/heap.h"
DEFINE_GUID
(
CLSID_TestEffect
,
0xb9ee12e9
,
0x32d9
,
0xe659
,
0xac
,
0x61
,
0x2d
,
0x7c
,
0xea
,
0x69
,
0x28
,
0x78
);
DEFINE_GUID
(
GUID_TestVertexShader
,
0x5bcdcfae
,
0x1e92
,
0x4dc1
,
0x94
,
0xfa
,
0x3b
,
0x01
,
0xca
,
0x54
,
0x59
,
0x20
);
...
...
@@ -358,7 +357,7 @@ static void queue_d3d1x_test(void (*test)(BOOL d3d11), BOOL d3d11)
if
(
mt_test_count
>=
mt_tests_size
)
{
mt_tests_size
=
max
(
16
,
mt_tests_size
*
2
);
mt_tests
=
heap_
realloc
(
mt_tests
,
mt_tests_size
*
sizeof
(
*
mt_tests
));
mt_tests
=
realloc
(
mt_tests
,
mt_tests_size
*
sizeof
(
*
mt_tests
));
}
mt_tests
[
mt_test_count
].
test
=
test
;
mt_tests
[
mt_test_count
++
].
d3d11
=
d3d11
;
...
...
@@ -408,7 +407,7 @@ static void run_queued_tests(void)
GetSystemInfo
(
&
si
);
thread_count
=
si
.
dwNumberOfProcessors
;
threads
=
heap_
calloc
(
thread_count
,
sizeof
(
*
threads
));
threads
=
calloc
(
thread_count
,
sizeof
(
*
threads
));
for
(
i
=
0
,
test_idx
=
0
;
i
<
thread_count
;
++
i
)
{
threads
[
i
]
=
CreateThread
(
NULL
,
0
,
thread_func
,
&
test_idx
,
0
,
NULL
);
...
...
@@ -419,7 +418,7 @@ static void run_queued_tests(void)
{
CloseHandle
(
threads
[
i
]);
}
heap_
free
(
threads
);
free
(
threads
);
}
static
void
set_point
(
D2D1_POINT_2F
*
point
,
float
x
,
float
y
)
...
...
@@ -10680,7 +10679,7 @@ static ULONG STDMETHODCALLTYPE effect_impl_Release(ID2D1EffectImpl *iface)
{
if
(
effect_impl
->
effect_context
)
ID2D1EffectContext_Release
(
effect_impl
->
effect_context
);
heap_
free
(
effect_impl
);
free
(
effect_impl
);
}
return
refcount
;
...
...
@@ -10718,7 +10717,7 @@ static HRESULT STDMETHODCALLTYPE effect_impl_create(IUnknown **effect_impl)
{
struct
effect_impl
*
object
;
if
(
!
(
object
=
heap_alloc
(
sizeof
(
*
object
))))
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
object
->
ID2D1EffectImpl_iface
.
lpVtbl
=
&
effect_impl_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