Pass parms through to PdhLookupPerfIndexByNameW for checking

Dmitry Timoshkov dmitry at codeweavers.com
Tue Feb 19 07:14:48 CST 2008


"Jeff Latimer" <lats at yless4u.com.au> wrote:

> +    if (machine && !(machineW = pdh_strdup_aw( machine ))) return PDH_MEMORY_ALLOCATION_FAILURE;
> 
> -    if (machine)
> -    {
> -        FIXME("remote machine not supported\n");
> -        return PDH_CSTATUS_NO_MACHINE;
> -    }
>     if (!(nameW = pdh_strdup_aw( name )))
>         return PDH_MEMORY_ALLOCATION_FAILURE;
> 
>     ret = PdhLookupPerfIndexByNameW( NULL, nameW, index );

You forgot to actually pass machineW to PdhLookupPerfIndexByNameW.

-- 
Dmitry.



More information about the wine-devel mailing list