ntdll: return some sane values for the FileFsVolumeInformation class members in NtQueryVolumeInformationFile.

Vitaliy Margolen wine-devel at kievinfo.com
Wed Nov 24 00:14:54 CST 2010

On 11/23/2010 01:05 PM, Louis Lenders wrote:
> This patch makes previously tests pass and fixes
> http://bugs.winehq.org/show_bug.cgi?id=21466. (A search through the registry
> on windows showed that at least the VolumeLabel and SerialNumber are not
> stored in the registry, so we just return some sane values)

> +            static const WCHAR volumelabelW[] = {'w','i','n','e','_','d','i','s','k',0};
> +
> +            info->VolumeSerialNumber = 0x15112000;
You should take that info from the volume (as it's done now in 
GetVolumeInformation) instead of hard-coded invalid values. I'm guessing 
some of that kernel32 functionality will need to be moved to ntdll.


More information about the wine-devel mailing list