nimgrab tool: fixes for Nim v0.19
This commit is contained in:
parent
f6c5c636bb
commit
72e15ff739
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ proc `$`(bstr: LPWSTR): string =
|
|||
if count == 0:
|
||||
raiseOsError(osLastError())
|
||||
else:
|
||||
result = newStringOfCap(count + 8)
|
||||
result = newString(count + 8)
|
||||
let res = WideCharToMultiByte(CP_UTF8, 0, bstr, -1, addr(result[0]), count,
|
||||
nil, nil)
|
||||
if res == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue