Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klass <kissaki@posteo.de>2016-11-17 14:59:45 +0300
committerJan Klass <kissaki@posteo.de>2016-11-17 14:59:45 +0300
commite2ad9c05f0cff73defe5083e6728ab9b1af63ab9 (patch)
treee3882263e01ace81722863d84e86337e82b06114 /plugins/lotro
parent486381c95a5d83f61c47b8e43538c03f341cc8a5 (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/lotro')
-rw-r--r--plugins/lotro/lotro.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/lotro/lotro.cpp b/plugins/lotro/lotro.cpp
index c8ac8a3cf..e1ce137b1 100644
--- a/plugins/lotro/lotro.cpp
+++ b/plugins/lotro/lotro.cpp
@@ -66,16 +66,16 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
nPtr = pointer to character name (unique on a server)
*/
- ok = peekProc(0x01272D34, o) &&
- peekProc(0x01272D2C, l) &&
- peekProc(0x01272D28, r) &&
- peekProc(0x01272D20, i) &&
- peekProc(pModule + 0x00A138A4, hPtr);
+ ok = peekProc(0x01272D34, o, 12) &&
+ peekProc(0x01272D2C, l, 2) &&
+ peekProc(0x01272D28, &r, 1) &&
+ peekProc(0x01272D20, &i, 1) &&
+ peekProc(pModule + 0x00A138A4, &hPtr, 4);
if (! ok)
return false;
- ok = peekProc((procptr32_t)(hPtr + 0x0000046F), h);
+ ok = peekProc((procptr32_t)(hPtr + 0x0000046F), &h, 4);
if (! ok)
return false;