Skip to content

Commit

Permalink
Fixed mixing narrow and wide string types
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius committed Aug 13, 2023
1 parent 2e1eb41 commit f41b738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Injector/Injector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Injector* Injector::Get()
Injector::Injector()
{ }

bool Injector::icompare_pred(const unsigned char a, const unsigned char b)
bool Injector::icompare_pred(const wchar_t a, const wchar_t b)
{
return std::tolower(a) == std::tolower(b);
}
Expand Down
4 changes: 2 additions & 2 deletions Injector/Injector.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Injector
// Case-insensitive string comparison utility functions
//

static bool icompare_pred(unsigned char a, unsigned char b);
static bool icompare_pred(TCHAR a, TCHAR b);

bool icompare(std::wstring const& a, std::wstring const& b) const;
bool icompare(std::tstring const& a, std::tstring const& b) const;
};

0 comments on commit f41b738

Please sign in to comment.