nimgrab tool: fixes for Nim v0.19

This commit is contained in:
Araq 2018-09-27 09:59:07 +02:00
commit 72e15ff739

View file

@ -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: