wbemprox: Add a Win32_LogicalDisk class stub.

John Yani vanuan at gmail.com
Thu Jun 28 14:22:22 CDT 2012


On 28 June 2012 22:17, Hans Leidekker <hans at codeweavers.com> wrote:
> On Thu, 2012-06-28 at 21:53 +0300, John Yani wrote:
>> +static void fill_logicaldisk( struct table *table )
>> +{
>> +    static const WCHAR caption[] =
>> +        {'C',':',0};
>> +    static const WCHAR description[] =
>> +        {'L','o','c','a','l',' ','F','i','x','e','d',' ','D','i','s','k',0};
>> +    static const WCHAR device_id[] =
>> +        {'C',':',0};
>> +    struct record_logicaldisk *rec;
>> +    FIXME("returns a fake logical disks table\n");
>> +    if (!(table->data = heap_alloc( sizeof(*rec) )))
>> +    {
>> +        return;
>> +    }
>> +    rec = (struct record_logicaldisk *)(table->data);
>> +    rec->caption        = caption;
>> +    rec->description    = description;
>> +    rec->device_id      = device_id;
>> +    table->num_rows = 1;
>> +    TRACE("created %u row(s)\n", table->num_rows);
>
> That's better. Does NFS actually query the Caption and Description properties?
>
>

Well, no. I just thought the output should be similar to the one on
winetestbot: https://testbot.winehq.org/JobDetails.pl?Key=19642&log_201=1#k201



More information about the wine-devel mailing list