win32 build; add -r option
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
/*
|
||||
* Disable Unicode until the calls to FindFirstFile etc
|
||||
* are changed to use wide character strings.
|
||||
*/
|
||||
#undef UNICODE
|
||||
#include <windows.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@ -593,7 +598,7 @@ fsdirread(Chan *c, uchar *va, int count, ulong offset)
|
||||
d.length = stbuf.st_size;
|
||||
d.type = 'U';
|
||||
d.dev = c->dev;
|
||||
n = convD2M(&d, (char*)va+i, count-i);
|
||||
n = convD2M(&d, (uchar*)va+i, count-i);
|
||||
if(n == BIT16SZ){
|
||||
strcpy(uif->nextname, de);
|
||||
break;
|
||||
@ -634,7 +639,7 @@ readdir(char *name, DIR *d)
|
||||
if(FindNextFile(d->handle, &d->wfd) == FALSE)
|
||||
return 0;
|
||||
}
|
||||
strcpy(name, d->wfd.cFileName);
|
||||
strcpy(name, (char*)d->wfd.cFileName);
|
||||
d->index++;
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user