diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2015-06-14 12:32:13 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2015-06-14 12:32:13 +0100 |
| commit | 89dfe4bea0ef29d57db26cade21924eb38402e02 (patch) | |
| tree | 3c1d63e095ae2070c1e2bc595639d23fc5c4bf6f /emu/Nt/devfs.c | |
| parent | 62d7827bc358c000db9ff48fe61bd28ac352a884 (diff) | |
handle 16-bit unicode from Windows in clipboard and fs names
Diffstat (limited to 'emu/Nt/devfs.c')
| -rw-r--r-- | emu/Nt/devfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emu/Nt/devfs.c b/emu/Nt/devfs.c index 6d79c35b..2e61e760 100644 --- a/emu/Nt/devfs.c +++ b/emu/Nt/devfs.c @@ -1659,10 +1659,10 @@ secstat(Dir *dir, char *file, Rune16 *srv) free(sd); if(ok){ dir->mode = st.mode; - n = runenlen(st.owner->name, runes16len(st.owner->name)); + n = rune16nlen(st.owner->name, runes16len(st.owner->name)); dir->uid = smalloc(n+1); runes16toutf(dir->uid, st.owner->name, n+1); - n = runenlen(st.group->name, runes16len(st.group->name)); + n = rune16nlen(st.group->name, runes16len(st.group->name)); dir->gid = smalloc(n+1); runes16toutf(dir->gid, st.group->name, n+1); } @@ -1688,7 +1688,7 @@ secsize(char *file, Rune16 *srv) if(sd != (void*)sdrock) free(sd); if(ok) - return runenlen(st.owner->name, runes16len(st.owner->name))+runenlen(st.group->name, runes16len(st.group->name)); + return rune16nlen(st.owner->name, runes16len(st.owner->name))+rune16nlen(st.group->name, runes16len(st.group->name)); return -1; } |
