Skip to content

Commit

Permalink
Bug, 获取obj内实现时意外的获取了符合声明
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Jul 25, 2024
1 parent 5a1a603 commit a5c5d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LibMaker/LibMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ LSTATUS CreateWeakObj(WORD Machine, LPCWSTR Names, std::string& Buffer)
{
auto& Symbol = TTTT[i];

// 过滤纯声明
if (Symbol.Type == IMAGE_SYM_TYPE_NULL && Symbol.SectionNumber == 0 && Symbol.StorageClass == IMAGE_SYM_CLASS_EXTERNAL)
// 过滤没有实际实现的
if (Symbol.SectionNumber == 0 && Symbol.StorageClass == IMAGE_SYM_CLASS_EXTERNAL)
continue;
//是一个声明
if (Symbol.StorageClass == IMAGE_SYM_CLASS_EXTERNAL)
Expand Down Expand Up @@ -2678,7 +2678,7 @@ WORD GetObjThunkSymbols(CStringW _szYY_ThunksFilePath, std::map<CStringA, bool>&
}

// 过滤掉纯声明
if (Symbol.Type == IMAGE_SYM_TYPE_NULL && Symbol.SectionNumber == 0 && Symbol.StorageClass == IMAGE_SYM_CLASS_EXTERNAL)
if (Symbol.SectionNumber == 0 && Symbol.StorageClass == IMAGE_SYM_CLASS_EXTERNAL)
continue;

if (_szName.IsEmpty())
Expand Down

0 comments on commit a5c5d19

Please sign in to comment.