Its not possible to share a whole drive in random cases
Bug #556853 reported by
eMTee
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Fix Released
|
High
|
Unassigned | ||
StrongDC++ |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The problem hits 0.67x and is because the FileFindIter class does not like if the given path is a root folder of a drive. If it created by passing a <drive:>\ like (or any other invalid) format to the constructor then the DirData structure member functions' retrurning values are computed on random memory content. isHidden() returns mostly false but not always as many reported :)
The attached patch can solve the problem, and with a quick look to the non-win32 part of the FileFindIter class, I think it should not hurt the *nix side, either.
description: | updated |
Changed in strongdc: | |
status: | New → Fix Committed |
Changed in dcplusplus: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
Check this in MSDN:
As stated previously, you cannot use a trailing backslash (\) in the lpFileName input string for FindFirstFile, therefore it may not be obvious how to search root directories. If you want to see files or get the attributes of a root directory, the following options would apply:
To examine files in a root directory, you can use "C:\*" and step through the directory by using FindNextFile.
Source: http:// msdn.microsoft. com/en- us/library/ aa364418( VS.85). aspx