diff options
author | Jan Klass <kissaki@posteo.de> | 2016-11-17 14:59:45 +0300 |
---|---|---|
committer | Jan Klass <kissaki@posteo.de> | 2016-11-17 14:59:45 +0300 |
commit | e2ad9c05f0cff73defe5083e6728ab9b1af63ab9 (patch) | |
tree | e3882263e01ace81722863d84e86337e82b06114 /plugins/dys | |
parent | 486381c95a5d83f61c47b8e43538c03f341cc8a5 (diff) |
Fix 2643: Revert "Merge PR #2611: plugins: use the short form of peekProc"
This reverts commit e9c558ffdbc1501d63f3fd6d73578f6fd6611aa1, reversing
changes made to ca2fd07b90746a17dba13963f7bdd54812c5d016.
This is a quick-fix for crashing PA plugins. The intended change is
still useful and planned to land later.
Diffstat (limited to 'plugins/dys')
-rw-r--r-- | plugins/dys/dys.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/dys/dys.cpp b/plugins/dys/dys.cpp index 142a2c261..bab7e2b9f 100644 --- a/plugins/dys/dys.cpp +++ b/plugins/dys/dys.cpp @@ -49,10 +49,10 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa wostringstream new_identity; ostringstream new_context; - ok = peekProc(posptr, ipos) && - peekProc(rotptr, rot) && - peekProc(stateptr, state) && - peekProc(hostptr, chHostStr); + ok = peekProc(posptr, ipos, 12) && + peekProc(rotptr, rot, 12) && + peekProc(stateptr, &state, 1) && + peekProc(hostptr, chHostStr, 40); if (!ok) return false; @@ -118,7 +118,7 @@ static int trylock(const std::multimap<std::wstring, unsigned long long int> &pi //Gamecheck char sMagic[14]; - if (!peekProc(pModule + 0x463726, sMagic) || strncmp("DysObjective@@", sMagic, 14)!=0) + if (!peekProc(pModule + 0x463726, sMagic, 14) || strncmp("DysObjective@@", sMagic, 14)!=0) return false; // Check if we can get meaningful data from it |