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
6f8debb1
Commit
6f8debb1
authored
Dec 14, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
be2b2901
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
mfplat.c
dlls/mfplat/tests/mfplat.c
+4
-5
No files found.
dlls/mfplat/tests/mfplat.c
View file @
6f8debb1
...
...
@@ -38,7 +38,6 @@
#include "evr.h"
#include "wine/test.h"
#include "wine/heap.h"
#define D3D11_INIT_GUID
#include "initguid.h"
...
...
@@ -4201,7 +4200,7 @@ static void test_attributes_serialization(void)
ok
(
hr
==
S_OK
,
"Failed to get blob size, hr %#x.
\n
"
,
hr
);
ok
(
size
==
8
,
"Got size %u.
\n
"
,
size
);
buffer
=
heap_
alloc
(
size
);
buffer
=
m
alloc
(
size
);
hr
=
MFGetAttributesAsBlob
(
attributes
,
buffer
,
size
);
ok
(
hr
==
S_OK
,
"Failed to serialize, hr %#x.
\n
"
,
hr
);
...
...
@@ -4223,7 +4222,7 @@ static void test_attributes_serialization(void)
ok
(
hr
==
S_OK
,
"Failed to get attribute count, hr %#x.
\n
"
,
hr
);
ok
(
count
==
0
,
"Unexpected count %u.
\n
"
,
count
);
heap_
free
(
buffer
);
free
(
buffer
);
/* Set some attributes of various types. */
IMFAttributes_SetUINT32
(
attributes
,
&
MF_MT_MAJOR_TYPE
,
456
);
...
...
@@ -4238,12 +4237,12 @@ static void test_attributes_serialization(void)
ok
(
hr
==
S_OK
,
"Failed to get blob size, hr %#x.
\n
"
,
hr
);
ok
(
size
>
8
,
"Got unexpected size %u.
\n
"
,
size
);
buffer
=
heap_
alloc
(
size
);
buffer
=
m
alloc
(
size
);
hr
=
MFGetAttributesAsBlob
(
attributes
,
buffer
,
size
);
ok
(
hr
==
S_OK
,
"Failed to serialize, hr %#x.
\n
"
,
hr
);
hr
=
MFInitAttributesFromBlob
(
dest
,
buffer
,
size
);
ok
(
hr
==
S_OK
,
"Failed to deserialize, hr %#x.
\n
"
,
hr
);
heap_
free
(
buffer
);
free
(
buffer
);
hr
=
IMFAttributes_GetUINT32
(
dest
,
&
MF_MT_MAJOR_TYPE
,
&
value32
);
ok
(
hr
==
S_OK
,
"Failed to get get uint32 value, hr %#x.
\n
"
,
hr
);
...
...
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