Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
0e1a3fc4
Commit
0e1a3fc4
authored
Feb 21, 2016
by
npzacs
Browse files
Try backup file when reading of MKB_RO.inf fails
parent
0157b519
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libaacs/aacs.c
View file @
0e1a3fc4
...
...
@@ -472,6 +472,11 @@ static MKB *_mkb_open(AACS *aacs)
MKB
*
mkb
;
size
=
_read_file
(
aacs
,
"AACS"
DIR_SEP
"MKB_RO.inf"
,
&
data
);
if
(
size
<
4
)
{
/* retry with backup file */
X_FREE
(
data
);
size
=
_read_file
(
aacs
,
"AACS"
DIR_SEP
"DUPLICATE"
DIR_SEP
"MKB_RO.inf"
,
&
data
);
}
if
(
size
<
4
)
{
X_FREE
(
data
);
BD_DEBUG
(
DBG_AACS
|
DBG_CRIT
,
"Error reading MKB file (AACS/MKB_RO.inf)
\n
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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