forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Small ps2link fix

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
ffgriever



Joined: 27 Oct 2007
Posts: 13

PostPosted: Thu Nov 29, 2007 9:46 am    Post subject: Small ps2link fix Reply with quote

ps2link/ee/cmdHandler.c

function pkoDumpMem

You forgot to increase pointer, so it writes the same 16kB over and over (if user specified to get more than 16kB that means).

IMO, just change:

memcpy(dataBuffer, (void *)offset, len);

to:

memcpy(dataBuffer, (void *)(offset+total), len);

Or increase the offset just as you do in pkoWriteMem.
Back to top
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Thu Nov 29, 2007 7:38 pm    Post subject: Reply with quote

I've commited the patch to svn, good job finding the bug ;-)
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group