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
f8aca527
Commit
f8aca527
authored
Aug 01, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx11_43/tests: Add a trailing '\n' to ok() calls.
parent
e195aafe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
d3dx11.c
dlls/d3dx11_43/tests/d3dx11.c
+16
-16
No files found.
dlls/d3dx11_43/tests/d3dx11.c
View file @
f8aca527
...
...
@@ -770,50 +770,50 @@ static void test_D3DX11GetImageInfoFromMemory(void)
}
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
,
sizeof
(
bmp_1bpp
),
NULL
,
&
info
,
NULL
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
,
sizeof
(
bmp_1bpp
)
+
5
,
NULL
,
&
info
,
NULL
);
/* too large size */
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
noimage
,
sizeof
(
noimage
),
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
noimage
,
sizeof
(
noimage
),
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
,
sizeof
(
bmp_1bpp
)
-
1
,
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
+
1
,
sizeof
(
bmp_1bpp
)
-
1
,
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
,
0
,
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
,
0
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
noimage
,
0
,
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
noimage
,
0
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
noimage
,
0
,
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
NULL
,
4
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
NULL
,
4
,
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
NULL
,
0
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
/* test BMP support */
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_1bpp
,
sizeof
(
bmp_1bpp
),
NULL
,
&
info
,
NULL
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
info
.
Width
==
1
,
"Unexpected width %u.
\n
"
,
info
.
Width
);
ok
(
info
.
Height
==
1
,
"Unexpected height %u.
\n
"
,
info
.
Height
);
ok
(
info
.
Depth
==
1
,
"Unexpected depth %u.
\n
"
,
info
.
Depth
);
...
...
@@ -825,7 +825,7 @@ static void test_D3DX11GetImageInfoFromMemory(void)
ok
(
info
.
ImageFileFormat
==
D3DX11_IFF_BMP
,
"Unexpected image file format %#x.
\n
"
,
info
.
ImageFileFormat
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_2bpp
,
sizeof
(
bmp_2bpp
),
NULL
,
&
info
,
NULL
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx."
,
hr
);
ok
(
hr
==
E_FAIL
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
D3DX11GetImageInfoFromMemory
(
bmp_4bpp
,
sizeof
(
bmp_4bpp
),
NULL
,
&
info
,
NULL
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\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