Fix file move never succeeding

This commit is contained in:
doylet 2024-03-25 16:16:13 +11:00
parent 3bca236a74
commit 003e2777de

View File

@ -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;