[PECOFF] Make the import library file magic more accurate.

llvm-svn: 194668
This commit is contained in:
Rui Ueyama 2013-11-14 06:15:18 +00:00
parent fe4e088dfb
commit 657ec494fa
1 changed files with 2 additions and 1 deletions

View File

@ -930,7 +930,8 @@ private:
}
static bool isImportLibrary(StringRef magic) {
return magic[2] == (char)0xff && magic[3] == (char)0xff;
return (magic[0] == 0 && magic[1] == 0 &&
magic[2] == (char)0xff && magic[3] == (char)0xff);
}
PECOFFLinkingContext &_PECOFFLinkingContext;