Patch level :2.0 488
Files correlati :xvagadll.dll Ricompilazione Demo : [ ] Commento :AO20055 git-svn-id: svn://10.65.10.50/trunk@11211 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e3f68ea5fa
commit
967ab7b358
@ -2501,7 +2501,10 @@ BOOLEAN xvt_fsys_get_dir(DIRECTORY *dirp)
|
||||
BOOLEAN xvt_fsys_is_removable_drive(const char* path)
|
||||
{
|
||||
#ifdef WIN32
|
||||
return GetDriveType(path) == DRIVE_REMOVABLE;
|
||||
char drive[_MAX_DRIVE+1];
|
||||
xvt_fsys_parse_pathname(path,drive,NULL,NULL,NULL,NULL);
|
||||
strcat(drive,"\\");
|
||||
return GetDriveType(drive) == DRIVE_REMOVABLE;
|
||||
#else
|
||||
char dev[_MAX_PATH];
|
||||
|
||||
@ -2513,7 +2516,10 @@ BOOLEAN xvt_fsys_is_removable_drive(const char* path)
|
||||
BOOLEAN xvt_fsys_is_network_drive(const char* path)
|
||||
{
|
||||
#ifdef WIN32
|
||||
return GetDriveType(path) == DRIVE_REMOTE;
|
||||
char drive[_MAX_DRIVE+1];
|
||||
xvt_fsys_parse_pathname(path,drive,NULL,NULL,NULL,NULL);
|
||||
strcat(drive,"\\");
|
||||
return GetDriveType(drive) == DRIVE_REMOTE;
|
||||
#else
|
||||
return OsLinux_IsNetworkDrive(path);
|
||||
#endif
|
||||
@ -2522,7 +2528,10 @@ BOOLEAN xvt_fsys_is_network_drive(const char* path)
|
||||
BOOLEAN xvt_fsys_is_fixed_drive(const char* path)
|
||||
{
|
||||
#ifdef WIN32
|
||||
return GetDriveType(path) == DRIVE_FIXED;
|
||||
char drive[_MAX_DRIVE+1];
|
||||
xvt_fsys_parse_pathname(path,drive,NULL,NULL,NULL,NULL);
|
||||
strcat(drive,"\\");
|
||||
return GetDriveType(drive) == DRIVE_FIXED;
|
||||
#else
|
||||
return !(xvt_fsys_is_network_drive(path) || xvt_fsys_is_removable_drive(path));
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user