pombreda / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

Misleading documentation for CreateFile #176

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The Documentation states to return the Error Exists if the file exists
2. This is not entirely true
3. As the function must still open the file and _then_ return the Error code

What is the expected output? What do you see instead?
- This is what the Win OS system is expecting 
http://msdn.microsoft.com/en-us/library/aa363858%28VS.85%29.aspx
- So.. Everything succeeds but the Return code is ERROR_ALREADY_EXISTS

What version of the product are you using? On what operating system?
- 0.5.3

Please provide any additional information below.
The documentation for CreateFile needs to have the reference above added to it, 
so that the CreateFile returns the correct information for each of the 
situations, and not just return straight away because some flags exist. This 
may probably fix some "Features" in the Mirror.cs example as well.

Original issue reported on code.google.com by smurf...@gmail.com on 15 Aug 2010 at 1:56