Jump to content

C++ dll woes (solved)


JohnOne
 Share

Recommended Posts

I was going to bring up the original xbox game save exploits, but after some reading I found those were cause by buffer underrun, not overrun. Two different worlds apparently.

Buffer underflow has to do with the speed of reading where the receiving end has to wait while the sending end continues sending. It doesn't cause an error condition or irregular behavior, just slowdowns.
Link to comment
Share on other sites

Ya thats what I was reading. That cleared up my confusion of why the exploit would only work if the save was on an external drive, not the internal hard drive.

Link to comment
Share on other sites

I saw something in JohnOne's first post. I'm just wondering if I'm right about this. He's returning a pointer to path but isn't path destroyed when the function returns?

LPWSTR __stdcall tmppath()
{
    LPWSTR path[MAX_PATH];

    if(GetTempPath(MAX_PATH, *path)){
        return *path;
    } else {
        return L"0";
    }
}
Edited by LaCastiglione
Link to comment
Share on other sites

I saw something in JohnOne's first post. I'm just wondering if I'm right about this. He's returning a pointer to path but isn't path destroyed when the function returns?

LPWSTR __stdcall tmppath()
{
    LPWSTR path[MAX_PATH];

    if(GetTempPath(MAX_PATH, *path)){
        return *path;
    } else {
        return L"0";
    }
}
Posted Image
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...