Skip to content

Commit

Permalink
fix(Util): Name convention of CharToWchar function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimura committed Feb 25, 2022
1 parent 87df8b5 commit 791fec2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Injector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Injector

inline int GetProcessId(std::string_view processName)
{
auto* target = Util::char_to_wchar(processName.data());
auto* target = Util::CharToWchar(processName.data());

const auto hToolHelpSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
PROCESSENTRY32W processEntry32{};
Expand Down
2 changes: 1 addition & 1 deletion src/Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Util
{
const wchar_t* char_to_wchar(const char* a)
inline const wchar_t* CharToWchar(const char* a)
{
const size_t size = ::strlen(a) + 1;
auto* wchar = new wchar_t[size];
Expand Down

0 comments on commit 791fec2

Please sign in to comment.