equal
deleted
inserted
replaced
59 |
59 |
60 if (lib == NULL) return false; |
60 if (lib == NULL) return false; |
61 for (;;) { |
61 for (;;) { |
62 FARPROC p; |
62 FARPROC p; |
63 |
63 |
64 while (*dll++ != '\0'); |
64 while (*dll++ != '\0') { /* Nothing */ } |
65 if (*dll == '\0') break; |
65 if (*dll == '\0') break; |
66 #if defined(WINCE) |
66 #if defined(WINCE) |
67 p = GetProcAddress(lib, MB_TO_WIDE(dll)); |
67 p = GetProcAddress(lib, MB_TO_WIDE(dll)); |
68 #else |
68 #else |
69 p = GetProcAddress(lib, dll); |
69 p = GetProcAddress(lib, dll); |
794 FiosItem *fios = FiosAlloc(); |
794 FiosItem *fios = FiosAlloc(); |
795 fios->type = FIOS_TYPE_DRIVE; |
795 fios->type = FIOS_TYPE_DRIVE; |
796 fios->mtime = 0; |
796 fios->mtime = 0; |
797 snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF); |
797 snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF); |
798 ttd_strlcpy(fios->title, fios->name, lengthof(fios->title)); |
798 ttd_strlcpy(fios->title, fios->name, lengthof(fios->title)); |
799 while (*s++ != '\0'); |
799 while (*s++ != '\0') { /* Nothing */ } |
800 } |
800 } |
801 #endif |
801 #endif |
802 } |
802 } |
803 |
803 |
804 bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb) |
804 bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb) |