Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Injecting DLL before login crashes the client upon login. #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start client but don't login.
2. Inject TibiaAPI_Injected.dll.
3. Login.

What is the expected output? What do you see instead?
You should login normal but the client crashes. Here's my error.txt, I'll
do some tests to try an pinpoint the problem.

+---------------------------------------------------------------
Debug Assertion 8.53 NWin32Exception.cpp 50
Thu Nov 12 00:35:40 2009
Graphic Engine: DirectX9 (2)
Operating System: Windows 7 Ultimate Edition 32 Bit in USA
Processor: AMD Sempron 3100+
Video Card: ATI Radeon 9600 SERI
Last Packet Types: 106 161 160 180 210 141 130 120 120 120
Last Packet: 106 103 125 195 125 007 255 097 000 000 000 000 000 241 000 000
Player Position: [32097,32189,6]
Player Name: Bingalingam (Calmera)
Player Action: 055 052 046 053 052 046 050 050 048 046 052 054 058 055 049
055 049
Player.cpp 361: exception occurred, reason:
Player.cpp 465: exception occurred, reason:
Control.cpp 1719: exception occurred (MessageType: 75 MaW: 2123FE8 MoW: 0),
reason:
Control.cpp 1684: exception occurred (Type = 75), reason:
Network.cpp 905: exception occurred, reason:
Network.cpp 756: exception occurred (PlayerSocketPointerStatus = 1), reason:
NWin32Exception.cpp 50: win32 exception occurred, reason:
access violation (read attempt at 00000000)
----------------------------------------------------------------

Original issue reported on code.google.com by joebingham07@gmail.com on 12 Nov 2009 at 5:39

GoogleCodeExporter commented 9 years ago
The problem is with MyRecv and MySend. If you comment out the code inside these
functions this problem doesn't occur, however, it will still occur even if you 
only
comment out the code for one function.

ie.
MyRecv
{
//commented
}
MySend
{
//commented
}
Will allow login without a crash, but
MyRecv
{
uncommented
}
MySend
{
//commented
}
And/Or
MyRecv
{
//commented
}
MySend
{
uncommented
}
Will still cause the client to crash.

Original comment by joebingham07@gmail.com on 12 Nov 2009 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by joebingham07@gmail.com on 1 Mar 2010 at 7:16