Skip to content

Commit

Permalink
Fix SetSizeToSmall offsets and size. (TheStarport#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmunster authored Jan 4, 2021
1 parent e8b739d commit 4b767af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/HkCbDeath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ std::wstring SetSizeToSmall(const std::wstring &wscDataFormat) {
uint iFormat = wcstoul(wscDataFormat.c_str() + 2, nullptr, 16);
wchar_t wszStyleSmall[32];
wcscpy_s(wszStyleSmall, wscDataFormat.c_str());
swprintf_s(wszStyleSmall + std::size(wszStyleSmall) - 2, 2, L"%02X",
0x90 | (iFormat & 7));
return std::wstring(wszStyleSmall, std::size(wszStyleSmall));
swprintf_s(wszStyleSmall + std::size(wscDataFormat) - 2, 3, L"%02X",
0x90 | (iFormat & 7));
return std::wstring(wszStyleSmall, std::size(wscDataFormat));
}

/**************************************************************************************************************
Expand Down

0 comments on commit 4b767af

Please sign in to comment.