Skip to content

Commit

Permalink
fixed some bugs with PVS
Browse files Browse the repository at this point in the history
added MinHeight params to simulate DPI aware
added support for hooking x64 child processes spawned from wow64 processes.
  • Loading branch information
snowie2000 committed Sep 8, 2016
1 parent 6b19dff commit be4393f
Show file tree
Hide file tree
Showing 16 changed files with 1,731 additions and 1,575 deletions.
2 changes: 1 addition & 1 deletion cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class StringHashT
}
StringHashT(LPCTSTR psz)
{
StringHashT();
this->StringHashT::StringHashT();
_tcsncpy(m_szBuffer, psz, BUFSIZE - 1);
UpdateHash();
}
Expand Down
2 changes: 1 addition & 1 deletion directwrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void MyDebug(const TCHAR * sz, ...)

#define SET_VAL(x, y) *(DWORD_PTR*)&(x) = *(DWORD_PTR*)&(y)
#define HOOK(obj, name, index) { \
AutoEnableDynamicCodeGen dynHelper(true); \
if (!HOOK_##name.Link) { \
AutoEnableDynamicCodeGen dynHelper(true); \
SET_VAL(ORIG_##name, (*reinterpret_cast<void***>(obj.p))[index]); \
hook_demand_##name(false); \
if (!HOOK_##name.Link) { MyDebug(L"##name hook failed"); } \
Expand Down
Loading

0 comments on commit be4393f

Please sign in to comment.