Fixed filename not being removed from path in certain instances.

This commit is contained in:
Nathan Moinvaziri 2019-01-07 13:09:16 -08:00
parent c78c782f63
commit b150432588

View file

@ -213,6 +213,10 @@ int32_t mz_path_remove_filename(char *path)
path_ptr -= 1;
}
if (path_ptr == path)
*path_ptr = 0;
return MZ_OK;
}