diff options
author | pommicket <pommicket@gmail.com> | 2023-01-09 21:59:51 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-09 22:00:23 -0500 |
commit | 7f0255cb40bb85276191ec3ddffe507e53abf2ac (patch) | |
tree | 2376d10183d4085a7e8c85bba008f8ba3516d731 /os-win.c | |
parent | ce158f26b9136b3fc831c6325ad911e3bf403a4b (diff) |
fixed a bunch of windows stuff
also compile_commands.json does fix the usages problem!
Diffstat (limited to 'os-win.c')
-rw-r--r-- | os-win.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ int os_rename_overwrite(const char *oldname, const char *newname) { // it's keeping an open handle to main.c in ted. presumably blocks deletion but not writing. // ReplaceFileW has the same problem. // if (CreateHardLinkW(wide_oldname, wide_newname, NULL) == 0) -// return -1; +// return -1 if (remove(oldname) != 0) return -1; return 0; |