Skip to content

Commit

Permalink
tighten
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenegriffin committed Nov 2, 2020
1 parent 5847fbf commit fe46c1f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions core/interpret/flags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,17 @@ namespace flags

// We've matched our flag name to the array - we SHOULD return a string at this point
auto flags = std::vector<std::wstring>{};
for (; FlagArray[ulCurEntry].ulFlagName == ulFlagName; ulCurEntry++)
while (FlagArray[ulCurEntry].ulFlagName == ulFlagName)
{
if (flagCLEARBITS == FlagArray[ulCurEntry].ulFlagType)
{
// keep going
}
else
if (flagCLEARBITS != FlagArray[ulCurEntry].ulFlagType)
{
flags.push_back(strings::formatmessage(
bHex ? IDS_FLAGTOSTRINGHEX : IDS_FLAGTOSTRINGDEC,
FlagArray[ulCurEntry].lFlagValue,
FlagArray[ulCurEntry].lpszName));
}

ulCurEntry++;
}

return strings::join(flags, L"\r\n");
Expand Down

0 comments on commit fe46c1f

Please sign in to comment.