Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [bug] UPP doesn`t see B: virtual drive
Re: [bug] UPP doesn`t see B: virtual drive [message #11074 is a reply to message #11069] Sat, 18 August 2007 10:27 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Well, you can try this: (Core/path.cpp):

Array<FileSystemInfo::FileInfo> FileSystemInfo::Find(String mask, int max_count) const
{
	Array<FileInfo> fi;
	if(IsNull(mask))
	{ // root
#ifdef PLATFORM_WINCE
		FileInfo& f = fi.Add();
		f.filename = "\\";
		f.root_style = ROOT_FIXED;
#elif defined(PLATFORM_WIN32)
		char drive[4] = "?:\\";
		for(int c = 'A'; c <= 'Z'; c++) {
			*drive = c;
			int n = GetDriveType(drive);
			if(n == DRIVE_NO_ROOT_DIR/* || IsWin32() && *drive == 'B'*/) continue;



(The change is the commenting out the test for B in the last line).

[Updated on: Sat, 18 August 2007 10:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Copy files
Next Topic: NTL vs STL compatibility
Goto Forum:
  


Current Time: Fri May 10 21:29:21 CEST 2024

Total time taken to generate the page: 0.02405 seconds