win: scandir use 'ls' for formatting long strings

PR-URL: https://github.com/libuv/libuv/pull/75/files
Reviewed-By: Bert Belder <bertbelder@gmail.com>
This commit is contained in:
Kenneth Perry 2014-12-19 07:24:43 -06:00 committed by Bert Belder
parent ccd9745a68
commit 796425205b

View File

@ -732,9 +732,9 @@ void fs__readdir(uv_fs_t* req) {
if (len == 0) {
fmt = L"./*";
} else if (pathw[len - 1] == L'/' || pathw[len - 1] == L'\\') {
fmt = L"%s*";
fmt = L"%ls*";
} else {
fmt = L"%s\\*";
fmt = L"%ls\\*";
}
/* Figure out whether path is a file or a directory. */