[PECOFF] Make the import library file magic more accurate.
llvm-svn: 194668
This commit is contained in:
parent
fe4e088dfb
commit
657ec494fa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue