summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-09-14 19:57:14 +0200
committerAraq <rumpf_a@web.de>2016-09-14 19:59:32 +0200
commit6a1b8e691fdd413578bb9e315f34a53369f111ed (patch)
tree82051f31d86d3dbe7c2cc1dc7ba52acc341bc5ac /lib/pure
parentda575bec541b4430610cb0063e3209db9793f008 (diff)
downloadNim-6a1b8e691fdd413578bb9e315f34a53369f111ed.tar.gz
fixes #4764, fixes #4731, fixes #4724
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 343c82f5e..d9ae5a1e6 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -580,9 +580,9 @@ proc moveFile*(source, dest: string) {.rtl, extern: "nos$1",
     when useWinUnicode:
       let s = newWideCString(source)
       let d = newWideCString(dest)
-      if moveFileW(s, d, 0'i32) == 0'i32: raiseOSError(osLastError())
+      if moveFileW(s, d) == 0'i32: raiseOSError(osLastError())
     else:
-      if moveFileA(source, dest, 0'i32) == 0'i32: raiseOSError(osLastError())
+      if moveFileA(source, dest) == 0'i32: raiseOSError(osLastError())
   else:
     if c_rename(source, dest) != 0'i32:
       raiseOSError(osLastError(), $strerror(errno))