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
ef19d852
Commit
ef19d852
authored
Jan 10, 2010
by
Julius Schwartzenberg
Committed by
Alexandre Julliard
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32/tests: Test corrupt avi list magic.
parent
e2944fc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
api.c
dlls/avifil32/tests/api.c
+22
-0
No files found.
dlls/avifil32/tests/api.c
View file @
ef19d852
...
...
@@ -354,6 +354,27 @@ static void test_default_data(void)
ok
(
DeleteFile
(
filename
)
!=
0
,
"Deleting file %s failed"
,
filename
);
}
static
void
test_amh_corruption
(
void
)
{
COMMON_AVI_HEADERS
cah
;
char
filename
[
MAX_PATH
];
PAVIFILE
pFile
;
int
res
;
GetTempPath
(
MAX_PATH
,
filename
);
strcpy
(
filename
+
strlen
(
filename
),
testfilename
);
/* Make sure only AVI files with the proper headers will be loaded */
init_test_struct
(
&
cah
);
cah
.
fh
[
3
]
=
mmioFOURCC
(
'A'
,
'V'
,
'i'
,
' '
);
create_avi_file
(
&
cah
,
filename
);
res
=
AVIFileOpen
(
&
pFile
,
filename
,
OF_SHARE_DENY_WRITE
,
0L
);
ok
(
res
!=
0
,
"Able to open file: error=%u
\n
"
,
res
);
ok
(
DeleteFile
(
filename
)
!=
0
,
"Deleting file %s failed
\n
"
,
filename
);
}
/* ########################### */
START_TEST
(
api
)
...
...
@@ -362,6 +383,7 @@ START_TEST(api)
AVIFileInit
();
test_AVISaveOptions
();
test_default_data
();
test_amh_corruption
();
AVIFileExit
();
}
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