Fix bug 1560 - SDL_RWFromConstMem write operation returns -1 but should return 0.
This commit is contained in:
parent
f25403ba28
commit
6a2bff0cd1
3 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue