wbemprox: Add a Win32_LogicalDisk class stub.

Hans Leidekker hans at codeweavers.com
Thu Jun 28 14:17:40 CDT 2012


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?





More information about the wine-devel mailing list