diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-09 11:54:19 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-09 11:54:19 -0800 |
| commit | 882e2c391e9dc0bedb3ffdc549862294cf174ec8 (patch) | |
| tree | 7327d8528becad90181e8480ac6f14d6ba08aa2c /src/libnative | |
| parent | b66ec3483bd5081bcc829efb88ceb841189b754d (diff) | |
| download | rust-882e2c391e9dc0bedb3ffdc549862294cf174ec8.tar.gz rust-882e2c391e9dc0bedb3ffdc549862294cf174ec8.zip | |
Fix the signature of CreateSymbolicLinkW
Closes #12123
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/file.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnative/io/file.rs b/src/libnative/io/file.rs index 25fb2809e76..255d4da33b8 100644 --- a/src/libnative/io/file.rs +++ b/src/libnative/io/file.rs @@ -746,7 +746,7 @@ pub fn symlink(src: &CString, dst: &CString) -> IoResult<()> { super::mkerr_winbool(as_utf16_p(src.as_str().unwrap(), |src| { as_utf16_p(dst.as_str().unwrap(), |dst| { unsafe { libc::CreateSymbolicLinkW(dst, src, 0) } - }) + }) as libc::BOOL })) } |
