aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/path.rs
diff options
context:
space:
mode:
authorValentin <[email protected]>2018-06-10 14:01:36 +0200
committerValentin <[email protected]>2018-06-10 14:02:52 +0200
commit77c84eb66cefde656cc74865bee2e3bc7a24245a (patch)
treee110ed00d632d01caa0f5f1e1636cd8656733b25 /ctr-std/src/path.rs
parentUpdate Travis to latest Nightly ( ͡° ͜ʖ ͡°) (diff)
downloadctru-rs-77c84eb66cefde656cc74865bee2e3bc7a24245a.tar.xz
ctru-rs-77c84eb66cefde656cc74865bee2e3bc7a24245a.zip
Fixes according to Fenrir's review
Diffstat (limited to 'ctr-std/src/path.rs')
-rw-r--r--ctr-std/src/path.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctr-std/src/path.rs b/ctr-std/src/path.rs
index 696711a..861c7dd 100644
--- a/ctr-std/src/path.rs
+++ b/ctr-std/src/path.rs
@@ -201,6 +201,9 @@ impl<'a> Prefix<'a> {
os_str_as_u8_slice(s).len()
}
match *self {
+ #[cfg(target_os = "horizon")]
+ Verbatim(x) => 1 + os_str_len(x),
+ #[cfg(target_os = "windows")]
Verbatim(x) => 4 + os_str_len(x),
VerbatimUNC(x, y) => {
8 + os_str_len(x) +