``` src\main\kotlin\win.kt:11:81: error: type mism...
# kotlin-native
m
Copy code
src\main\kotlin\win.kt:11:81: error: type mismatch: inferred type is CValuesRef<ByteVar /* = ByteVarOf<Byte> */> but LPSTR? /* = CPointer<CHARVar /* = ByteVarOf<CHAR /* = Byte */> */>? */ was expected
        val r = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, this@toKString, -1, utf8.refTo(0), sz, null, null)