Skip to content

Commit

Permalink
Fix 2.0/devel compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Jun 16, 2024
1 parent dd797f0 commit 7bacb1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stew/io2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ proc getTempPath*(): IoResult[string] =
ok(strpath)
else:
for name in ["TMP", "TEMP", "TMPDIR", "TEMPDIR"]:
let res = c_getenv(name)
let res = c_getenv(cstring(name))
if not(isNil(res)) and isDir($res):
var path = $res
normPathEnd(path, true)
Expand Down
6 changes: 3 additions & 3 deletions stew/windows/acl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ proc free*(sd: var SD) =
## Free memory occupied by security descriptor.
discard sd.sddata.free()
discard sd.acldata.free()
sd.sddata = nil
sd.acldata = nil
sd.sddata = LocalMemPtr(nil)
sd.acldata = LocalMemPtr(nil)

proc free*(sid: var SID) =
## Free memory occupied by security identifier.
discard sid.data.free()
sid.data = nil
sid.data = LocalMemPtr(nil)

proc getTokenInformation(token: uint,
information: uint32): IoResult[LocalMemPtr] =
Expand Down

0 comments on commit 7bacb1f

Please sign in to comment.