Fix file move never succeeding
This commit is contained in:
parent
3bca236a74
commit
003e2777de
@ -366,6 +366,7 @@ DQN_API bool Dqn_OS_MoveFile(Dqn_Str8 src, Dqn_Str8 dest, bool overwrite, Dqn_Er
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (file_moved) {
|
if (file_moved) {
|
||||||
|
result = true;
|
||||||
int unlink_result = unlink(src.data);
|
int unlink_result = unlink(src.data);
|
||||||
if (unlink_result == -1) {
|
if (unlink_result == -1) {
|
||||||
int error_code = errno;
|
int error_code = errno;
|
||||||
|
Loading…
Reference in New Issue
Block a user