mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 19:06:26 +00:00
SDL_SYS_RenamePath(): Fix error message.
This commit is contained in:

committed by
Sam Lantinga

parent
3922bcec95
commit
a10578acbd
@@ -74,7 +74,7 @@ bool SDL_SYS_RemovePath(const char *path)
|
|||||||
bool SDL_SYS_RenamePath(const char *oldpath, const char *newpath)
|
bool SDL_SYS_RenamePath(const char *oldpath, const char *newpath)
|
||||||
{
|
{
|
||||||
if (rename(oldpath, newpath) < 0) {
|
if (rename(oldpath, newpath) < 0) {
|
||||||
return SDL_SetError("Can't remove path: %s", strerror(errno));
|
return SDL_SetError("Can't rename path: %s", strerror(errno));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user