mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-01-11 22:40:32 +00:00
This commit is contained in:
parent
6633e8490c
commit
1c40762cf5
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ pub struct PipeServer {
|
|||
|
||||
fn to_u16s<S: AsRef<OsStr>>(s: S) -> io::Result<Vec<u16>> {
|
||||
let mut maybe_result: Vec<u16> = s.as_ref().encode_wide().collect();
|
||||
if maybe_result.iter().any(|&u| u == 0) {
|
||||
if maybe_result.contains(&0) {
|
||||
return Err(io::Error::new(
|
||||
io::ErrorKind::InvalidInput,
|
||||
"strings passed to WinAPI cannot contain NULs",
|
||||
|
|
|
|||
Loading…
Reference in a new issue