diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2010-02-07 18:08:12 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2010-02-07 18:08:12 +0100 |
commit | 3644bc7212115aa47a1d5087a4afc31e6d28b6fa (patch) | |
tree | c85995a10ff65aea145e11a1fbb86765700959a8 /lib | |
parent | 5978983e9748716edbdf86efe3d2d69d94af78d5 (diff) | |
download | Nim-3644bc7212115aa47a1d5087a4afc31e6d28b6fa.tar.gz |
support for .. raw:: html for the docgen
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 1bbe55bb9..1879fb5db 100755 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1020,7 +1020,7 @@ proc setFilePermissions*(filename: string, permissions: set[TFilePermission]) = res = res and not FILE_ATTRIBUTE_READONLY else: res = res or FILE_ATTRIBUTE_READONLY - if SetFileAttributesA(filename, res) != 0'i32: + if SetFileAttributesA(filename, res) == - 1'i32: OSError() proc inclFilePermissions*(filename: string, |