fix Load_INFO()
This commit is contained in:
parent
a1849042de
commit
0746ee8963
@ -2707,7 +2707,6 @@ void Load_INFO(T_IO_Context * context)
|
|||||||
};
|
};
|
||||||
T_INFO_Header header;
|
T_INFO_Header header;
|
||||||
T_INFO_ImageHeader imgheaders[2];
|
T_INFO_ImageHeader imgheaders[2];
|
||||||
char filename[MAX_PATH_CHARACTERS];
|
|
||||||
FILE *file;
|
FILE *file;
|
||||||
long file_size;
|
long file_size;
|
||||||
word plane_line_size = 0;
|
word plane_line_size = 0;
|
||||||
@ -2719,15 +2718,14 @@ void Load_INFO(T_IO_Context * context)
|
|||||||
byte * buffers[2];
|
byte * buffers[2];
|
||||||
|
|
||||||
File_error = 0;
|
File_error = 0;
|
||||||
Get_full_filename(filename, context->File_name, context->File_directory);
|
|
||||||
|
|
||||||
file=fopen(filename, "rb");
|
file = Open_file_read(context);
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
{
|
{
|
||||||
File_error=1;
|
File_error=1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
file_size=File_length_file(file);
|
file_size = File_length_file(file);
|
||||||
|
|
||||||
if (Read_INFO_Header(file, &header) && header.Magic == 0xe310)
|
if (Read_INFO_Header(file, &header) && header.Magic == 0xe310)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user