| Summary: | MOD_init() returns bad error code | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | Alam.GBC |
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: |
MOD_init error return fix
use Mix_SetError and return -1 when fail to load MikMod library |
||
should it also do Mix_SetError(), like this?
Mix_SetError("Could not load MikMod library");
Created attachment 387 [details]
use Mix_SetError and return -1 when fail to load MikMod library
here my git-svn patch to return -1 in place of return NULL and set an error string of what happened, failed to load the MidMod library
The low level SDL routines will set the error message. Thanks! |
Created attachment 385 [details] MOD_init error return fix MOD_init() returns NULL instead of -1. A quick fix is attached. -- Ozkan