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