uppsrc minor fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@1008 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-03-25 09:52:36 +00:00
parent 87b03816c7
commit 8a53596c28
2 changed files with 526 additions and 524 deletions

View file

@ -221,7 +221,8 @@ Image NativePathIcon(const char *path, bool folder)
return GetFileIcon(path, false);
#endif
#ifdef PLATFORM_POSIX
bool isdrive = folder && ((path == "/media") || (path == "/mnt"));
String p = path;
bool isdrive = folder && ((p == "/media") || (p == "/mnt"));
FindFile ff(path);
return isdrive ? PosixGetDriveImage(GetFileName(path))
: GetFileIcon(path, GetFileName(path), folder, ff.GetMode() & 0111);

File diff suppressed because it is too large Load diff