infomaniac50 / dokan

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

Some division by sizeof(WCHAR) in dokan_mirror/mirror.c is not necessary #231

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No visible problem occurs. 

What is the expected output? What do you see instead?
At dokan_mirror/mirror.c:1003 and dokan_mirror/mirror.c:1012, size parameters 
are divided by sizeof(WCHAR). The function is called from dokan/volume.c:101 
and the size parameters are passed as numbers of elements (cf. 
dokan/volume.c:103 and dokan/volume.c:108). Thus, division by sizeof(WCHAR) 
occurs twice. Buffer size is enough so that no visible problem occurs.

What version of the product are you using? On what operating system?
Reference revision is r185.

Original issue reported on code.google.com by yak...@gmail.com on 14 Jul 2011 at 12:58