Fix bug 1560 - SDL_RWFromConstMem write operation returns -1 but should return 0.

This commit is contained in:
Andreas Schiffler 2013-03-12 09:10:37 -07:00
parent f25403ba28
commit 6a2bff0cd1
3 changed files with 9 additions and 8 deletions

View file

@ -451,7 +451,7 @@ static size_t SDLCALL
mem_writeconst(SDL_RWops * context, const void *ptr, size_t size, size_t num)
{
SDL_SetError("Can't write to read-only memory");
return (-1);
return (0);
}
static int SDLCALL