patch of Ullrich von Bassewitz

This commit is contained in:
Stefan Luethje 1997-04-17 19:41:41 +00:00
parent ba6da0c867
commit d6ce934cb8
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
/* $Id$
* $Log$
*/
/*****************************************************************************/
/* */
/* AREACODE.C */
@ -288,7 +292,7 @@ static unsigned LoadFileHeader (AreaCodeDesc* Desc)
} else if (feof (Desc->F) || Desc->Count == 0) {
/* This should not happen on a valid file */
return acInvalidFile;
} else if (Desc->Version != acVersion) {
} else if ((Desc->Version & 0xFF00) != acVersion) {
return acWrongVersion;
} else {
/* Data is sane */